I'm getting the following error when using Command anywhere in the Svelte markup.
Argument of type 'typeof Command' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent'.
Type 'typeof Command' provides no match for the signature 'new (args: { target: any; props?: any; }): ATypedSvelteComponent'.
Possible causes:
- You use the instance type of a component where you should use the constructor type
- Type definitions are missing for this Svelte Component. If you are using Svelte 3.31+, use SvelteComponentTyped to add a definition:
import type { SvelteComponentTyped } from "svelte";
class ComponentName extends SvelteComponentTyped<{propertyName: string;}> {}ts(2345)
I suspect this is a config issue on my end, but if you have any ideas as to how I can resolve would be much appreciated.
This is the component for reference, copied from the readme.
Hey, keen to try this package out.
I'm getting the following error when using
Command
anywhere in the Svelte markup.I suspect this is a config issue on my end, but if you have any ideas as to how I can resolve would be much appreciated.
This is the component for reference, copied from the readme.