matyunya / smelte

UI framework with material components built with Svelte and Tailwind CSS
https://smeltejs.com/
MIT License
1.53k stars 114 forks source link

Expose type definition files #241

Closed davidfou closed 3 years ago

davidfou commented 3 years ago

When smelte is used with typescript, the compiler is confused because the file src/index.d.ts isn't part of the package. Adding them to the bundle fixes that problem. svelte-typed-component is imported from those file definitions. Moving that dependency from devDependencies to dependencies fixes that import.

I didn't find any contribution guidelines, let me know if that's the right way of helping :wink: Also, well done for your good work :clap:

Closes #166, closes #109

matyunya commented 3 years ago

Thank you!

exipnus commented 3 years ago

@matyunya

Hi,

Types are not working yet. I just installed smelte@1.1.5 and the compiler is complaining:

image

image

Thank you.

bwireman commented 3 years ago

Doesn't look like it's been pushed to npm yet @exipnus