Skip to content

Commit 156b780

Browse files
authored
(fix) relax type for __sveltets_componentType
We don't know the exact typings, so allow anything instead of nothing
1 parent 7a732e7 commit 156b780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte2tsx/svelte-shims.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ declare function __sveltets_with_any<Props = {}, Events = {}, Slots = {}>(
122122
declare function __sveltets_store_get<T = any>(store: SvelteStore<T>): T
123123
declare function __sveltets_any(dummy: any): any;
124124
declare function __sveltets_empty(dummy: any): {};
125-
declare function __sveltets_componentType(): AConstructorTypeOf<Svelte2TsxComponent>
125+
declare function __sveltets_componentType(): AConstructorTypeOf<Svelte2TsxComponent<any, any, any, false>>
126126
declare function __sveltets_invalidate<T>(getValue: () => T): T
127127
declare function __sveltets_eventDef<T extends SvelteEventRecord>(def: T): SvelteOnAllEvent<T>
128128
declare function __sveltets_mapWindowEvent<K extends keyof HTMLBodyElementEventMap>(

0 commit comments

Comments
 (0)