diff --git a/sites/svelte-5-preview/src/routes/docs/content/01-api/03-snippets.md b/sites/svelte-5-preview/src/routes/docs/content/01-api/03-snippets.md index b86081d6f5..fab4201478 100644 --- a/sites/svelte-5-preview/src/routes/docs/content/01-api/03-snippets.md +++ b/sites/svelte-5-preview/src/routes/docs/content/01-api/03-snippets.md @@ -237,10 +237,12 @@ You can import the `Snippet` type from `'svelte'`: The `Snippet` type is generic. Here's how you'd type various cases: ```ts -type SnippetWithNoArgs = Snippet -type SnippetWithOneArg = Snippet<[argOne: number]> -type SnippetWithMultipleArgs = Snippet<[argOne: number, argTwo: string]> -type SnippetWithAnyNumberOfArgs = Snippet +type SnippetWithNoArgs = Snippet; +type SnippetWithOneArg = Snippet<[argOne: number]>; +type SnippetWithMultipleArgs = Snippet< + [argOne: number, argTwo: string] +>; +type SnippetWithAnyNumberOfArgs = Snippet; ``` And here are the snippet declarations matching those cases (note: this example uses TypeScript):