Created
September 23, 2016 15:11
-
-
Save jribeiro/bcd6b502e9928db8757e2ba23dc3a9a7 to your computer and use it in GitHub Desktop.
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 | |
import type { A } from 'my-module'; | |
const myFunction = (foo: A): boolean => !!foo; |
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
declare module 'my-module' { | |
declare type A = { | |
get: Function | |
} | |
declare function myFunction(foo: A):boolean | |
} |
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
{ | |
"name": "my-module" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment