fix: ensure typings for `<svelte:options>` are picked up (Svelte 5 version)

fixes #12886
pull/12903/head
Simon Holthausen 2 years ago
parent 4c006d18c7
commit c97d50ee42

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: ensure typings for `<svelte:options>` are picked up

@ -243,8 +243,8 @@ declare global {
'svelte:body': HTMLProps<'svelte:body', HTMLAttributes>;
'svelte:document': HTMLProps<'svelte:document', HTMLAttributes>;
'svelte:fragment': { slot?: string };
'svelte:options': HTMLProps<'svelte:options', HTMLAttributes>;
'svelte:head': { [name: string]: any };
// don't type svelte:options, it would override the types in svelte/elements and it isn't extendable anyway
[name: string]: { [name: string]: any };
}

Loading…
Cancel
Save