From 7e9053ccdb2563f0fc772bcd83cbcad0b706b402 Mon Sep 17 00:00:00 2001 From: Paolo Ricciuti Date: Mon, 24 Jul 2023 13:39:07 +0200 Subject: [PATCH] Add data-* to svg attributes --- packages/svelte/elements.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index ec450284c5..9a7e7b3aa8 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -1451,6 +1451,9 @@ export interface SVGAttributes extends AriaAttributes, DO yChannelSelector?: string | undefined | null; z?: number | string | undefined | null; zoomAndPan?: string | undefined | null; + + // allow any data- attribute + [key: `data-${string}`]: any; } export interface HTMLWebViewAttributes extends HTMLAttributes {