does vue2leaflet support typescript, i don't seem to find any topic about it?
There is no defined types for Vue2Leaflet at the moment, also the types for leaflet are not official too ( but do exist )
We would welcome a PR tho!
heres most of the types (they require you install @types/leaflet)
Link to blob with types
I am trying to make a PR but its not happy right now
@HIMISOCOOL Thank you very much! Please take a look at the current master after the refactor it should be easy to define types starting from the mixin :)
wanted to help but it seem he has done everything
wanted to help but it seem he has done everything
its not 100% right now, I only put proper types to the components I am using, the rest are just extending Vue. If you have time you can make types for all the other mixins and post the updated version here
ok, i will get on it tomorrow if i can.
@walidsebai Are you still on this? Would love to see this aswell.
yeah but i'm busy at the moment i will take care of it in 2 week
@lordfuoco I started a branch and then made most of the changes,
https://github.com/HIMISOCOOL/Vue2Leaflet/commit/b1f770a
but for some reason it doesn't want to show up as a branch change or let me make any PR's, what am I doing wrong DX
@walidsebai @kevcodez check out my original comment, I've edited it with about ~80% of the types filled now
If you want to contribute you need to fork the repo and do a branch there and then create a PR :)
turns out there was a github outage, just my luck.
anyway #258 is up and ready to review.
@walidsebai has had a quick look, am I missing anything from your types?
@HIMISOCOOL no i don't thinks so other than more precise type, but we can do that as an enhancement.
@walidsebai yeah I agree, it would take using them at runtime to figure out what is more appropriate than the many any's for a start
fixed by #258
Closing this :)
Most helpful comment
heres most of the types (they require you install @types/leaflet)
Link to blob with types
I am trying to make a PR but its not happy right now