Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created January 17, 2020 23:38
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 BetterProgramming/aaf5d4d87338d2f9970adb8f333f3ec2 to your computer and use it in GitHub Desktop.
Save BetterProgramming/aaf5d4d87338d2f9970adb8f333f3ec2 to your computer and use it in GitHub Desktop.
interface EchoFn {
<T>(a: T): T;
};
function echo<T>(a: T): T {
return a;
}
const e: EchoFn = echo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment