Open MadaraUchiha opened 6 years ago
type T0 = {foo: string, bar: boolean}; function magic(param) { return param; } magic({foo: 'hello world', bar: true});
We would like to use T0 as the type, because it's available and it matches our runtime type.
//snip function magic(param: Object) { // or at best {foo: string, bar: boolean} // snip
// snip function magic(param: T0) { // snip
That'd be awesome!
Given file
We would like to use T0 as the type, because it's available and it matches our runtime type.
Actual:
Expected:
goodnessSquad