Basically, I’m writing a KMPP library that’s desig...
# javascript
a
Basically, I’m writing a KMPP library that’s designed to be consumed from our existing web app, iOS app, and Android app. In our web app, we use Flow for type safety. I currently have to; - handwrite Flow type definitions to match the public API of my KMPP - add JsName annotations to the public API of my KMPP to prevent mangling since I’m expecting to call it all by name from JS - add the public API of my KMPP to DCE’s keep directive so the declarations don’t get eliminated Ideally, I want to only do one of these three steps. I’m thinking that the best way to do this is to write some sort of plugin that finds everything annotated with JsName, and then generate the keep directive along with a Flow type definition for the declaration. Is that possible/sane?