At the moment the only way to export flow types is to rename .js files to .js.flow. It means you need to publish your source.
I am thinking about one of these solutions:
- Generate flow type definition manually (the same as
flow-typed)
- Keep it up to date manually (the same as TypeScript Definitions). This make sense for small packages like react-workbox.
- It does not make sense to use flow types in js, and have the same definition for exporting in another file
- Convert flow types to flow comments
At the moment the only way to export flow types is to rename
.jsfiles to.js.flow. It means you need to publish your source.gen-flow-filesTime to deprecategen-flow-files? facebook/flow#5871I am thinking about one of these solutions:
flow-typed)build/esmandbuild/cjs