Last active
November 12, 2016 19:53
-
-
Save pcardune/ebf67ea3498e2f42c3ef1c2f1e0f70b8 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 */ | |
type IdentityFunc<A> = (a: A) => A; | |
declare var identity: IdentityFunc<number>; | |
const aNumber:number = identity(1); | |
const aString:string = identity("foo"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment