Reputation: 1064
I'm using FlowType on a React native project and I want to put a JavaScript interface in its own file for sharing throughout the project. Thoughts?
Upvotes: 0
Views: 728
Reputation: 1064
The trick is to use export type and import type.
I found the answer here:
https://flowtype.org/docs/modules.html#type-imports--exports
Upvotes: 1