Skip to content

Instantly share code, notes, and snippets.

@pcardune
Last active November 12, 2016 19:54
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 pcardune/5a9194d3bf72333ad2af50f7216632ea to your computer and use it in GitHub Desktop.
Save pcardune/5a9194d3bf72333ad2af50f7216632ea to your computer and use it in GitHub Desktop.
/* @flow */
type IdentityFunc = <A>(a: A) => A;
declare var identity: IdentityFunc;
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