James, thanks for writing this! Fun fact if you didn’t already know: we use Flow at Medium! I use IntelliJ IDEA which understands Flow syntax. It has similar functionality:
Here’s a real world example for an interface we defined for moment.js, which was easier than some of the other libraries we use because it’s written using Typescript which has similar type annotation syntax:
I’m sure your team already knows this, so this bit is just for anyone else who is reading: the funny syntax with exports() works because Moment is used like this:
const moment = require('moment')
let m = moment()
Hoping to read more posts from you and your team so we can learn more about this going forward!