Fork me on GitHub
#cljsjs
<
2018-03-27
>
timo09:03:57

hi there, can I request an upgrade of a lib? or is there a good manual on how to do it? I failed with upgrading react-leaflet, when I loaded multiple JS-files and had to Enter the main namespace to extern like described on https://github.com/jmmk/javascript-externs-generator. What namespace do I have to provide?

miikka11:03:18

@timok Hi, you're on the right track. Looking at https://github.com/cljsjs/packages/blob/f12b0f29d4f375c3b1f7ae96b9444853a8aefc52/react-leaflet/resources/cljsjs/react-leaflet/common/react-leaflet.ext.js, it starts with var ReactLeaflet = ... so the main namespace should be ReactLeaflet

miikka11:03:09

Sometimes there is more than one namespace, but it doesn't seem to be case here as ReactLeaflet is the only top-level variable in the extern file.

👍 4
timo12:03:15

thanks, I will try that