leaflet-plugins icon indicating copy to clipboard operation
leaflet-plugins copied to clipboard

@type file for typescript

Open pdashford opened this issue 7 years ago • 6 comments

Is there any chance you could provide a @types file so that it can be referenced using typescript? Thanks P

pdashford avatar Jan 24 '18 15:01 pdashford

I don't know what you are talking about :p Could you provide a pull request ?

brunob avatar Jan 25 '18 18:01 brunob

No news, no PR, can we close ?

brunob avatar Jun 12 '19 11:06 brunob

Also searching for def file.

Seems related: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/19492

UksusoFF avatar Oct 30 '19 10:10 UksusoFF

Feel free to provide a PR if needed.

brunob avatar Oct 30 '19 10:10 brunob

have you found any solution to this? @brunob he means that when you try to import npm package for example like this import * from 'leaflet-plugins' ; you get error TS2307: Cannot find module 'leaflet-plugins' or its corresponding type declarations.

gelinger777 avatar Jun 16 '21 17:06 gelinger777

Also I have tried to do



import  'leaflet-plugins/layer/tile/Yandex' ;
import  'leaflet-plugins/layer/tile/Yandex.addon.LoadApi' ;

but seems it did not helped . How to use this within angular / ES apps?

gelinger777 avatar Jun 16 '21 17:06 gelinger777