SIGN IN SIGN UP

fix: add explicit .js extensions to relative imports so declarations resolve under NodeNext/Node16

The emitted .d.ts copy relative specifiers verbatim, and the extensionless form
(e.g. `from "./events"`) doesn't resolve under Node16/NodeNext, hiding inherited
members such as `addEventListener` (TS2339). Appending `.js` matches the existing
SDK-import style and works with both bundler-mode type-checking and Bun.build.
Types-only; runtime is unaffected.

Fixes #704
K
Ken Jo committed
264d9cae448fd07bf5f718d188e5528936796fa0
Parent: 1a71317
Committed by Olivier Chafik <ochafik@anthropic.com> on 9/8/2026, 12:40:58 PM