Created
March 5, 2018 11:44
-
-
Save ThomasKruegl/2f83b35f2f41ae0339ef070b3197508c 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
// how to type such? | |
var x= {} | |
x.foo = 27; | |
x.bar = foo+10; | |
x.as_str = x.foo + " " + x.bar; | |
return x; | |
interface X<T> { | |
foo: T; | |
bar: T | string; | |
as_str: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment