cljsjs

timo 2018-03-27T09:57:57.000535Z

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?

miikka 2018-03-27T11:21:18.000155Z

@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

miikka 2018-03-27T11:22:09.000394Z

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.

👍 1
timo 2018-03-27T12:10:15.000400Z

thanks, I will try that