Update sites/svelte-5-preview/src/routes/docs/content/01-api/03-snippets.md

pull/10320/head
Simon H 2 years ago committed by GitHub
parent 46306700d2
commit 2584931317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -237,6 +237,7 @@ You can import the `Snippet` type from `'svelte'`:
The `Snippet` type is generic. Here's how you'd type various cases: The `Snippet` type is generic. Here's how you'd type various cases:
```ts ```ts
// @errors: 2305
import type { Snippet } from 'svelte'; import type { Snippet } from 'svelte';
type SnippetWithNoArgs = Snippet; type SnippetWithNoArgs = Snippet;

Loading…
Cancel
Save