Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created January 17, 2020 23:37
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/08a8ae0255fd65cbb090b7ecffb103b8 to your computer and use it in GitHub Desktop.
Save BetterProgramming/08a8ae0255fd65cbb090b7ecffb103b8 to your computer and use it in GitHub Desktop.
interface EchoInterface {
[prop: string]: any
}
function echo<T, U, V, W>(a: T, b: U, c: V, d: W): EchoInterface {
return {a,b,c,d};
}
console.log(echo(1, 'a', false, {}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment