jjimenezshaw / Leaflet.Control.Layers.Tree

a Tree Layers Control for Leaflet
https://jjimenezshaw.github.io/Leaflet.Control.Layers.Tree/examples/basic.html
BSD 3-Clause "New" or "Revised" License
146 stars 36 forks source link

Add typings for Typescript users #31

Closed erikvullings closed 3 years ago

erikvullings commented 3 years ago

I love your tree control, but since I'm using Typescript, it is not so easy to properly use it. Of course, you can use a hack like

(L.control.layers as any).tree...

but proper typings would be better.

jjimenezshaw commented 3 years ago

Done in #36