5 lines
139 B
TypeScript
5 lines
139 B
TypeScript
//// [contextualTyping6.ts]
|
|
var foo:{id:number;}[] = [{id:1}, {id:2}];
|
|
|
|
//// [contextualTyping6.js]
|
|
var foo = [{ id: 1 }, { id: 2 }];
|