Skip to content

Commit 98fb1b1

Browse files
authored
fix: allow instrinsic <svelte:...> elements to inherit from SvelteHTMLElements (#16424)
1 parent 6c9717a commit 98fb1b1

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

.changeset/funny-masks-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: allow instrinsic `<svelte:...>` elements to inherit from `SvelteHTMLElements`

packages/svelte/svelte-html.d.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -239,18 +239,6 @@ declare global {
239239
use: HTMLProps<'use', SVGAttributes>;
240240
view: HTMLProps<'view', SVGAttributes>;
241241

242-
// Svelte specific
243-
'svelte:window': HTMLProps<'svelte:window', HTMLAttributes>;
244-
'svelte:body': HTMLProps<'svelte:body', HTMLAttributes>;
245-
'svelte:document': HTMLProps<'svelte:document', HTMLAttributes>;
246-
'svelte:fragment': { slot?: string };
247-
'svelte:head': { [name: string]: any };
248-
'svelte:boundary': {
249-
onerror?: (error: unknown, reset: () => void) => void;
250-
failed?: import('svelte').Snippet<[error: unknown, reset: () => void]>;
251-
};
252-
// don't type svelte:options, it would override the types in svelte/elements and it isn't extendable anyway
253-
254242
[name: string]: { [name: string]: any };
255243
}
256244
}

0 commit comments

Comments
 (0)