simeydotme/svelte-range-slider-pips

[feature] type support

ghostdevv opened this issue · 5 comments

Currently there are no types shipped with the package, would be nice to do this

In terms of options to auto generate types, you can either stick with the current rollup build system and use sveld to generate types. Or you can switch to sveltekit package and use that to build the package

i7N3 commented

I've created a type definition. You can add it as dev dep.
https://www.npmjs.com/package/@types/svelte-range-slider-pips

I've created a type definition. You can add it as dev dep. https://www.npmjs.com/package/@types/svelte-range-slider-pips

Thanks @i7N3 ... is this a normal/accepted way to handle the issue? And if so is the issue closable? Or should the types be defined inside the repo?

i7N3 commented

I've created a type definition. You can add it as dev dep. https://www.npmjs.com/package/@types/svelte-range-slider-pips

Thanks @i7N3 ... is this a normal/accepted way to handle the issue? And if so is the issue closable? Or should the types be defined inside the repo?

As someone mentioned here, there is a better way to rewrite svelte-range-slider-pips to typescript.