Skip to content

Commit 5ec4409

Browse files
authored
fix: ensure typings for <svelte:options> are picked up (#12902)
Fixes #12886
1 parent 1a9727d commit 5ec4409

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/big-students-deliver.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: ensure typings for `<svelte:options>` are picked up

packages/svelte/svelte-html.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ declare global {
243243
'svelte:body': HTMLProps<'svelte:body', HTMLAttributes>;
244244
'svelte:document': HTMLProps<'svelte:document', HTMLAttributes>;
245245
'svelte:fragment': { slot?: string };
246-
'svelte:options': HTMLProps<'svelte:options', HTMLAttributes>;
247246
'svelte:head': { [name: string]: any };
247+
// don't type svelte:options, it would override the types in svelte/elements and it isn't extendable anyway
248248

249249
[name: string]: { [name: string]: any };
250250
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy