diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index 604403f0a2..7b67e2a07e 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -859,6 +859,9 @@ export interface HTMLAttributes extends AriaAttributes, D // allow any data- attribute [key: `data-${string}`]: any; + + // allow any attachment + [key: symbol]: (node: T) => void | (() => void); } export type HTMLAttributeAnchorTarget = '_self' | '_blank' | '_parent' | '_top' | (string & {});