Created
January 6, 2017 00:54
-
-
Save mvolkmann/a536d861d4c624685dfc1e1d16f95909 to your computer and use it in GitHub Desktop.
CommonJS Flow example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
function product(a, b) { | |
return a * b; | |
} | |
exports.product = product; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @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