Skip to content

Instantly share code, notes, and snippets.

@mvolkmann
Created January 6, 2017 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvolkmann/a536d861d4c624685dfc1e1d16f95909 to your computer and use it in GitHub Desktop.
Save mvolkmann/a536d861d4c624685dfc1e1d16f95909 to your computer and use it in GitHub Desktop.
CommonJS Flow example
// @flow
function product(a, b) {
return a * b;
}
exports.product = product;
// @flow
// This declaration does not satisfy Flow!
declare export function product(a: number, b: number): number;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment