Skip to content

Commit 7e9053c

Browse files
Add data-* to svg attributes
1 parent 5cd4f77 commit 7e9053c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/svelte/elements.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,9 @@ export interface SVGAttributes<T extends EventTarget> extends AriaAttributes, DO
14511451
yChannelSelector?: string | undefined | null;
14521452
z?: number | string | undefined | null;
14531453
zoomAndPan?: string | undefined | null;
1454+
1455+
// allow any data- attribute
1456+
[key: `data-${string}`]: any;
14541457
}
14551458

14561459
export interface HTMLWebViewAttributes extends HTMLAttributes<HTMLElement> {

0 commit comments

Comments
 (0)