Created
January 17, 2020 23:37
-
-
Save BetterProgramming/08a8ae0255fd65cbb090b7ecffb103b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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