Created
May 18, 2016 10:26
-
-
Save iamdustan/52a0698a511cdda8b0528870837eb474 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 */ | |
// 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