File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' svelte ' : patch
3+ ---
4+
5+ fix: add children to element typings
Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ export type MessageEventHandler<T extends EventTarget> = EventHandler<MessageEve
6464// ----------------------------------------------------------------------
6565
6666export interface DOMAttributes < T extends EventTarget > {
67+ // Implicit children prop every element has
68+ // Add this here so that libraries doing `props$<HTMLButtonAttributes>()` don't need a separate interface
69+ children ?: import ( 'svelte' ) . Snippet < any > ;
70+
6771 // Clipboard Events
6872 'on:copy' ?: ClipboardEventHandler < T > | undefined | null ;
6973 oncopy?: ClipboardEventHandler < T > | undefined | null ;
You can’t perform that action at this time.
0 commit comments