fix: adjust children snippet default type

Needs to be void so that zero args are passed to it
fixes #9744
pull/9816/head
Simon Holthausen 12 months ago
parent 5667785903
commit dcdd645480

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: adjust children snippet default type

@ -66,7 +66,7 @@ export type MessageEventHandler<T extends EventTarget> = EventHandler<MessageEve
export interface DOMAttributes<T extends EventTarget> {
// Implicit children prop every element has
// Add this here so that libraries doing `$props<HTMLButtonAttributes>()` don't need a separate interface
children?: import('svelte').Snippet<any>;
children?: import('svelte').Snippet<void>;
// Clipboard Events
'on:copy'?: ClipboardEventHandler<T> | undefined | null;

Loading…
Cancel
Save