Skip to content

Instantly share code, notes, and snippets.

@pcardune
Last active November 12, 2016 19:53
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/974216e7cee6a69a582f1079e5e5956f to your computer and use it in GitHub Desktop.
Save pcardune/974216e7cee6a69a582f1079e5e5956f to your computer and use it in GitHub Desktop.
/* @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