Skip to content

Commit

Permalink
fix: ensure typings for <svelte:options> are picked up (#12902)
Browse files Browse the repository at this point in the history
Fixes #12886
  • Loading branch information
dummdidumm authored Aug 19, 2024
1 parent 1a9727d commit 5ec4409
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/big-students-deliver.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 5ec4409

Please sign in to comment.