himynameisdave / svelte-flex

💪 A simple and reusable flexbox component for Svelte
https://bit.ly/svelte-flex
MIT License
78 stars 5 forks source link

Support for Typescript? #35

Closed erezsh closed 1 year ago

erezsh commented 1 year ago

When trying to use Flex svelte from within typescript, I get this error:

Could not find a declaration file for module 'svelte-flex'. './node_modules/svelte-flex/lib/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/svelte-flex` if it exists or add a new declaration (.d.ts) file containing `declare module 'svelte-flex';`ts(7016)

Maybe I'm doing something wrong?

However, looking at the source, doesn't look like anything is typed.

himynameisdave commented 1 year ago

Typescript is supported as of v2.0.0, feel free to let us know if there is something specific which isn't working for you!