Skip to content

Instantly share code, notes, and snippets.

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