At the time of writing, you can use the two together by grabbing the interface file from here:
https://github.com/facebook/immutable-js/blob/master/type-definitions/immutable.js.flow
interfaces
. .flowconfig
if it doesn't exist, and add the following lines.flowconfig
[libs]
interfaces/
This will look in the ./interfaces/
directory for Flow definitions.
Although linking to a resource is frowned upon on SO, it that case it makes sense as that will be the most up to date (I'm assuming FB will keep it update as they update the core library)
Edited to add that flowtypes have been added since most recent major version.
Original answer:
Looks like integration between Flow and Immutable.js is in development but not yet complete.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With