Skip to content

Commit

Permalink
fix: ensure typings for <svelte:options> are picked up (Svelte 5 ve…
Browse files Browse the repository at this point in the history
…rsion) (#12903)

fixes #12886
  • Loading branch information
dummdidumm authored Aug 19, 2024
1 parent 4c006d1 commit 0da4116
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/brown-radios-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: ensure typings for `<svelte:options>` are picked up
2 changes: 1 addition & 1 deletion packages/svelte/svelte-html.d.ts
Original file line number Diff line number Diff line change
Expand 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 };
}
Expand Down

0 comments on commit 0da4116

Please sign in to comment.