Last active
November 12, 2016 19:53
-
-
Save pcardune/974216e7cee6a69a582f1079e5e5956f to your computer and use it in GitHub Desktop.
This file contains hidden or 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<mixed>; | |
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