BulatDashiev / svelte-slider

Simple range slider for Svelte 3
27 stars 7 forks source link

Sry, it might be a stupid issue, but I can still not figure it out #8

Closed remember9069 closed 1 year ago

remember9069 commented 1 year ago

When I try to use your Slider, it shows something got wrong

Argument of type 'typeof Slider' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent'. Types of construct signatures are incompatible. Type 'new (options: any) => Slider' is not assignable to type 'new (args: { target: any; props?: any; }) => ATypedSvelteComponent'. Type 'Slider' is missing the following properties from type 'ATypedSvelteComponent': $$prop_def, $$events_def, $$slot_def

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;}> {}
remember9069 commented 1 year ago

I just leave it ignored, and it works now. Great work btw. Thanks.