Skip to content

Commit 371f0d3

Browse files
committed
fix: types for SVG bind: attributes
1 parent d82edf6 commit 371f0d3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/svelte/elements.d.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,13 @@ export interface DOMAttributes<T extends EventTarget> {
465465
onfullscreenerrorcapture?: EventHandler<Event, T> | undefined | null;
466466

467467
xmlns?: string | undefined | null;
468+
469+
readonly 'bind:contentRect'?: DOMRectReadOnly | undefined | null;
470+
readonly 'bind:contentBoxSize'?: Array<ResizeObserverSize> | undefined | null;
471+
readonly 'bind:borderBoxSize'?: Array<ResizeObserverSize> | undefined | null;
472+
readonly 'bind:devicePixelContentBoxSize'?: Array<ResizeObserverSize> | undefined | null;
473+
readonly 'bind:clientWidth'?: number | undefined | null;
474+
readonly 'bind:clientHeight'?: number | undefined | null;
468475
}
469476

470477
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
@@ -839,13 +846,7 @@ export interface HTMLAttributes<T extends EventTarget> extends AriaAttributes, D
839846
*/
840847
'bind:innerText'?: string | undefined | null;
841848

842-
readonly 'bind:contentRect'?: DOMRectReadOnly | undefined | null;
843-
readonly 'bind:contentBoxSize'?: Array<ResizeObserverSize> | undefined | null;
844-
readonly 'bind:borderBoxSize'?: Array<ResizeObserverSize> | undefined | null;
845-
readonly 'bind:devicePixelContentBoxSize'?: Array<ResizeObserverSize> | undefined | null;
846849
readonly 'bind:focused'?: boolean | undefined | null;
847-
readonly 'bind:clientWidth'?: number | undefined | null;
848-
readonly 'bind:clientHeight'?: number | undefined | null;
849850
readonly 'bind:offsetWidth'?: number | undefined | null;
850851
readonly 'bind:offsetHeight'?: number | undefined | null;
851852

0 commit comments

Comments
 (0)