-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Describe the bug
On the SvelteKit docs page on Snapshots, when Typescript is selected as a language for docs code samples (toggle inside sidebar), the code references the incorrect type Snapshotstring instead of Snapshot<string>.
I cannot to reference this exact line in docs markdown, because it seems to be generated from JSDoc from this line:
| /** @type {import('./$types').Snapshot<string>} */ |
which, when using Typescript, should get rendered into:
export const snapshot: Snapshot<string> = {but is instead rendered as:
export const snapshot: Snapshotstring = {Reproduction
- Open https://kit.svelte.dev/docs/snapshots
- In the Sidebar, switch from "JavaScript" to "TypeScript"
- Scroll down to code example titled
+page.svelte - See line
export const snapshot: Snapshotstring = {Logs
No response
System Info
(issue is on SvelteKit website, not in my local development)Severity
annoyance
Additional Information
No response
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation