Leaflet / Leaflet.Editable

Make geometries editable in Leaflet.
http://leaflet.github.io/Leaflet.Editable/doc/api.html
559 stars 197 forks source link

Add a Declaration File #217

Closed charlieforward9 closed 5 months ago

charlieforward9 commented 5 months ago

When making this import call import ReactLeafletEditable from 'react-leaflet-editable';

I get this error:

Could not find a declaration file for module 'react-leaflet-editable'. 'c:/Users/charl/Documents/Github/Agroview2.0/node_modules/react-leaflet-editable/dist/bundle.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/react-leaflet-editable` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-leaflet-editable';`
yohanboniface commented 5 months ago

This repo is for Leaflet.Editabe, not for react-leaflet-editable, so I'm not sure this issue belongs here.

charlieforward9 commented 5 months ago

Good point, I will re-open this there, thank you.