File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " svelte " : patch
3+ ---
4+
5+ fix: make static ` element ` property available for the SvelteComponent type
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ export class SvelteComponent<
5959 Events extends Record < string , any > = any ,
6060 Slots extends Record < string , any > = any
6161> {
62+ /** The custom element version of the component. Only present if compiled with the `customElement` compiler option */
63+ static element ?: typeof HTMLElement ;
64+
6265 [ prop : string ] : any ;
6366 /**
6467 * @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
Original file line number Diff line number Diff line change 88 hydrate
99} from 'svelte' ;
1010
11+ SvelteComponent . element === HTMLElement ;
12+
1113// --------------------------------------------------------------------------- legacy: classes
1214
1315class LegacyComponent extends SvelteComponent <
Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ declare module 'svelte' {
6060 Events extends Record < string , any > = any ,
6161 Slots extends Record < string , any > = any
6262 > {
63+ /** The custom element version of the component. Only present if compiled with the `customElement` compiler option */
64+ static element ?: typeof HTMLElement ;
65+
6366 [ prop : string ] : any ;
6467 /**
6568 * @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
You can’t perform that action at this time.
0 commit comments