lepikhinb / momentum-modal

MIT License
440 stars 26 forks source link

TypeScript typings #60

Open karloci opened 1 year ago

karloci commented 1 year ago

Hello, I have successfully installed the package in my InertiaJS/Vue/Typescript application and am using it. But, after running the "npm run build" command, I get a message that there are no types for Typescript.

_resources/js/Layouts/MainTemplate.vue:5:21 - error TS7016: Could not find a declaration file for module 'momentum-modal'. 'C:/Projects/neocrops/node_modules/momentum-modal/dist/momentum-modal.js' implicitly has an 'any' type. There are types at 'C:/Projects/neocrops/nodemodules/momentum-modal/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'momentum-modal' library may need to update its package.json or typings.

Can you update the package or give me some advice? Thanks in advance

r0bbie commented 3 months ago

Would be great to have Typescript compatibility out the box also!