This is just an example that shows how to distribute flow types for modules
which use babel
and/or rollup
. In this example, we have src/browser-module
and src/node-module
to demonstrate each. The rollup
example could use the
flow gen-flow-files
command except it suffers from
this issue.
So instead, you can forward all exports in a file with the same name with
.flow
. See the output in the dist
directory and the scripts in the
package.json
.
I created this for this blog post
where I talk about doing this for my project paypal-scripts
.