You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using with Svelte 5 and fortunately render() works fine (as it uses mount() which appears to be 4 and 5 compatible).
However the types are for Svelte 4 - eg SvelteComponent not Component so I get errors in my code, eg:
Argument of type 'Component<Props, {}, "foo">' is not assignable to parameter of type 'ComponentType<SvelteComponent<Record<string, any>, any, any>>'.
Type 'Component<Props, {}, "foo">' is not assignable to type 'new (options: ComponentConstructorOptions<Record<string, any>>) => SvelteComponent<Record<string, any>, any, any>'.
Type 'Component<Props, {}, "foo">' provides no match for the signature 'new (options: ComponentConstructorOptions<Record<string, any>>): SvelteComponent<Record<string, any>, any, any>'.ts(2345)
Somehow need to support both svelte 4 and 5.
Is it possible to provide overriding types in userland as a temp solution?
There may be other problems but my tests have not used anyhting else other than render() so far.
The text was updated successfully, but these errors were encountered:
I'm using with Svelte 5 and fortunately
render()
works fine (as it usesmount()
which appears to be 4 and 5 compatible).However the types are for Svelte 4 - eg
SvelteComponent
notComponent
so I get errors in my code, eg:Somehow need to support both svelte 4 and 5.
Is it possible to provide overriding types in userland as a temp solution?
There may be other problems but my tests have not used anyhting else other than
render()
so far.The text was updated successfully, but these errors were encountered: