Created
August 16, 2016 16:26
-
-
Save kastermester/26f7b9b92d516a4b7f5cee93a1cfb9ba to your computer and use it in GitHub Desktop.
Flow example
This file contains hidden or 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
[options] |
This file contains hidden or 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 | |
const myExports = { | |
myMethod: (arg: string) : bool => { | |
return arg.length > 0; | |
} | |
}; | |
export default myExports; |
This file contains hidden or 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 | |
import f from './src1'; | |
console.log(f.myMethod("something")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment