Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/svelte-devtools-types-js-extension.md
Original file line number Diff line number Diff line change
@@ -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 `<TanStackDevtools />` props and the exported plugin types silently became `any`.
2 changes: 1 addition & 1 deletion packages/svelte-devtools/src/TanStackDevtools.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { untrack } from 'svelte'
import { TanStackDevtoolsSvelteAdapter } from './devtools.js'
import type { TanStackDevtoolsSvelteInit } from './types'
import type { TanStackDevtoolsSvelteInit } from './types.js'

let { plugins, config, eventBusConfig }: TanStackDevtoolsSvelteInit = $props()

Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-devtools/src/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { TanStackDevtoolsPlugin } from '@tanstack/devtools'
import type {
TanStackDevtoolsSvelteInit,
TanStackDevtoolsSveltePlugin,
} from './types'
} from './types.js'

type MountedComponent = ReturnType<typeof ComponentHost>

Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-devtools/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export { default as TanStackDevtools } from './TanStackDevtools.svelte'
export type {
TanStackDevtoolsSveltePlugin,
TanStackDevtoolsSvelteInit,
} from './types'
} from './types.js'