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/ebf67ea3498e2f42c3ef1c2f1e0f70b8 to your computer and use it in GitHub Desktop.
Save pcardune/ebf67ea3498e2f42c3ef1c2f1e0f70b8 to your computer and use it in GitHub Desktop.
/* @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