File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " svelte " : patch
3
+ ---
4
+
5
+ Revert "feat: enable TS autocomplete for Svelte HTML element definitions"
Original file line number Diff line number Diff line change @@ -2066,7 +2066,7 @@ export interface SvelteHTMLElements {
2066
2066
failed ?: import ( 'svelte' ) . Snippet < [ error : unknown, reset : ( ) => void ] > ;
2067
2067
} ;
2068
2068
2069
- [ name : string & { } ] : { [ name : string ] : any } ;
2069
+ [ name : string ] : { [ name : string ] : any } ;
2070
2070
}
2071
2071
2072
2072
export type ClassValue = string | import ( 'clsx' ) . ClassArray | import ( 'clsx' ) . ClassDictionary ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import * as svelteElements from './elements.js';
8
8
/**
9
9
* @internal do not use
10
10
*/
11
- type HTMLProps < Property extends keyof svelteElements . SvelteHTMLElements , Override > = Omit <
11
+ type HTMLProps < Property extends string , Override > = Omit <
12
12
import ( './elements.js' ) . SvelteHTMLElements [ Property ] ,
13
13
keyof Override
14
14
> &
@@ -250,7 +250,7 @@ declare global {
250
250
} ;
251
251
// don't type svelte:options, it would override the types in svelte/elements and it isn't extendable anyway
252
252
253
- [ name : string & { } ] : { [ name : string ] : any } ;
253
+ [ name : string ] : { [ name : string ] : any } ;
254
254
}
255
255
}
256
256
}
You can’t perform that action at this time.
0 commit comments