5 lines
144 B
TypeScript
5 lines
144 B
TypeScript
//// [contextualTyping35.ts]
|
|
var foo = <{ id: number;}> {id:4, name: "as"};
|
|
|
|
//// [contextualTyping35.js]
|
|
var foo = { id: 4, name: "as" };
|