diff --git a/.changeset/svelte-devtools-types-js-extension.md b/.changeset/svelte-devtools-types-js-extension.md new file mode 100644 index 000000000..ff5250814 --- /dev/null +++ b/.changeset/svelte-devtools-types-js-extension.md @@ -0,0 +1,5 @@ +--- +'@tanstack/svelte-devtools': patch +--- + +Import `./types` with a `.js` extension so the published declarations resolve under `moduleResolution: "NodeNext"` and `"Node16"`. Before this fix, those setups reported `TS2835` with `skipLibCheck: false`, and with `skipLibCheck: true` the `` props and the exported plugin types silently became `any`. diff --git a/packages/svelte-devtools/src/TanStackDevtools.svelte b/packages/svelte-devtools/src/TanStackDevtools.svelte index e2410ae66..ffd493101 100644 --- a/packages/svelte-devtools/src/TanStackDevtools.svelte +++ b/packages/svelte-devtools/src/TanStackDevtools.svelte @@ -1,7 +1,7 @@