shramov / leaflet-plugins

Plugins for Leaflet library
http://psha.org.ru/b/leaflet-plugins.html
MIT License
722 stars 289 forks source link

@type file for typescript #267

Open pdashford opened 6 years ago

pdashford commented 6 years ago

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

brunob commented 6 years ago

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

brunob commented 5 years ago

No news, no PR, can we close ?

UksusoFF commented 4 years ago

Also searching for def file.

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

brunob commented 4 years ago

Feel free to provide a PR if needed.

gelinger777 commented 3 years ago

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 commented 3 years ago

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?