You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not really, since this is quite tricky! I actually work on another project where everything is in Flow, but we need TypeScript definitions for our external users.
To handle this, I actually wrote a script for converting Flow to TypeScript. It's full of horrible regular expressions, but it does work for our case. If you look around on NPM, there are better solutions such as FlowTS.
Assuming you run a script like this as part of your build, you can then add a types property to your package.json file, pointing to the generated type definitions.
We have a repo in Flow that, and we would like to import a TypeScript package.
The text was updated successfully, but these errors were encountered: