Skip to content

Instantly share code, notes, and snippets.

@iamdustan
Created May 18, 2016 10:26
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 iamdustan/52a0698a511cdda8b0528870837eb474 to your computer and use it in GitHub Desktop.
Save iamdustan/52a0698a511cdda8b0528870837eb474 to your computer and use it in GitHub Desktop.
/* @flow */
// let’s say these were defined in a different file and
// Child is not publicly exported. Can I reference the
// Child type precisely using standard dot.prop syntax?
type Child = (name:string) => {};
type T = {
child: Child;
};
function kids (child:T.Child) {
return child(7);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment