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

fixes #12886
pull/12907/head
Simon H 3 months ago committed by GitHub
parent 4c006d18c7
commit 0da4116b9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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:body': HTMLProps<'svelte:body', HTMLAttributes>;
'svelte:document': HTMLProps<'svelte:document', HTMLAttributes>; 'svelte:document': HTMLProps<'svelte:document', HTMLAttributes>;
'svelte:fragment': { slot?: string }; 'svelte:fragment': { slot?: string };
'svelte:options': HTMLProps<'svelte:options', HTMLAttributes>;
'svelte:head': { [name: string]: any }; '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 }; [name: string]: { [name: string]: any };
} }

Loading…
Cancel
Save