remolacha
remolacha copied to clipboard
Import remolacha's types in apps
After spending a couple of days I couldn't figure out how to import the types of the remolacha base module in apps.
- Remolacha's modules are publicly available in
window.remolachabecausewebpack.config.jsondefinesoutput.library = 'remolacha'. Apps have access to the module without having to embed remolacha's code in each app. - Remolacha's types are automatically generated in
types/remolacha/index.d.ts, but I could not find a way of importing them from apps.
The current workaround is that apps just do declare var remolacha : any; to get access to the remolacha object, but that's dirty.