vue2-leaflet-markercluster
vue2-leaflet-markercluster copied to clipboard
Could not find a declaration file for module 'vue2-leaflet-markercluster'
How to add types or declaration of this module when project is created in Vue TS?
Map is getting created but getting following error in terminal:
Try
npm install @types/vue2-leaflet-markerclusterif it exists or add a new declaration (.d.ts) file containing
declare module 'vue2-leaflet-markercluster';``
I created a file named 'vue2-leaflet-markercluster.d.ts' at the level of tsconfig.js and added line declare module 'vue2-leaflet-markercluster';
to it. Error got resolved. Is there any better or more proper way to do this for this package?
I have done the same for my project, I don't believe there is any better way as there is no declaration file contained in this library.