@@ -37,8 +37,8 @@ declare global {
37
37
) : Key extends keyof ElementTagNameMap
38
38
? ElementTagNameMap [ Key ]
39
39
: Key extends keyof SVGElementTagNameMap
40
- ? SVGElementTagNameMap [ Key ]
41
- : any ;
40
+ ? SVGElementTagNameMap [ Key ]
41
+ : any ;
42
42
function createElement < Elements extends IntrinsicElements , Key extends keyof Elements , T > (
43
43
// "undefined | null" because of <svelte:element>
44
44
element : Key | undefined | null ,
@@ -47,14 +47,14 @@ declare global {
47
47
) : Key extends keyof ElementTagNameMap
48
48
? ElementTagNameMap [ Key ]
49
49
: Key extends keyof SVGElementTagNameMap
50
- ? SVGElementTagNameMap [ Key ]
51
- : any ;
50
+ ? SVGElementTagNameMap [ Key ]
51
+ : any ;
52
52
53
53
// For backwards-compatibility and ease-of-use, in case someone enhanced the typings from import('svelte/elements').HTMLAttributes/SVGAttributes
54
54
// eslint-disable-next-line @typescript-eslint/no-unused-vars
55
- interface HTMLAttributes < T extends EventTarget = any > { }
55
+ interface HTMLAttributes < T extends EventTarget = any > { }
56
56
// eslint-disable-next-line @typescript-eslint/no-unused-vars
57
- interface SVGAttributes < T extends EventTarget = any > { }
57
+ interface SVGAttributes < T extends EventTarget = any > { }
58
58
59
59
/**
60
60
* Avoid using this interface directly. Instead use the `SvelteHTMLElements` interface exported by `svelte/elements`
@@ -247,6 +247,7 @@ declare global {
247
247
'svelte:boundary' : {
248
248
onerror ?: ( error : unknown , reset : ( ) => void ) => void ;
249
249
failed ?: import ( 'svelte' ) . Snippet < [ error : unknown, reset : ( ) => void ] > ;
250
+ pending ?: import ( 'svelte' ) . Snippet ;
250
251
} ;
251
252
// don't type svelte:options, it would override the types in svelte/elements and it isn't extendable anyway
252
253
0 commit comments