fumeapp / tailvue

Vue components built for Nuxt3|Vue3 powered by Windi CSS|tailwindcss
157 stars 14 forks source link

fix: ensure proper type export mapping #35

Closed favna closed 9 months ago

favna commented 9 months ago

As per the changes that TypeScript has been pushing since the release of TypeScript v5 with module resolutions it is now required to explicitly define types in the export mapping otherwise errors are thrown. This solution won't fully ensure a pass by arethetypeswrong but it will still be better than it is now. To fully match arethetypeswrong tailvue would need to be bundled separately for ESM and CJS on typings level as well. (index.d.cts and index.d.mts)

tcampbPPU commented 9 months ago

thanks for your contribution! we will take a look into this

kgutwin commented 8 months ago

This is great! The same fixes should also be applied to packages/nuxt/package.json, and ideally, a new version published 😄 thanks!