vincjo / datatables

A toolkit for creating datatable components with Svelte
https://vincjo.fr/datatables
MIT License
372 stars 15 forks source link

Typescript support #8

Closed rogeriojardim-fedrax closed 1 year ago

rogeriojardim-fedrax commented 1 year ago

I install this npm and i m using in my project Typescript. Is show me this: Could not find a declaration file for module '@vincjo/datatables' If the '@vincjo/datatables' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@vincjo/datatables';

rogeriojardim-fedrax commented 1 year ago

i add this line in app.d.ts to solve the problem declare module '@vincjo/datatables';

vincjo commented 1 year ago

I misread SvelteKit doc about packaging.

Now it exports the index.d.ts, it should work properly.

Thx for reporting :thumbsup: