diff --git a/.changeset/tasty-numbers-perform.md b/.changeset/tasty-numbers-perform.md new file mode 100644 index 0000000000..b5447fe325 --- /dev/null +++ b/.changeset/tasty-numbers-perform.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: adjust children snippet default type diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index 4c3bef74f2..a456340283 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -66,7 +66,7 @@ export type MessageEventHandler = EventHandler { // Implicit children prop every element has // Add this here so that libraries doing `$props()` don't need a separate interface - children?: import('svelte').Snippet; + children?: import('svelte').Snippet; // Clipboard Events 'on:copy'?: ClipboardEventHandler | undefined | null;