TypeScript/tests/baselines/reference/contextualTyping6.js

6 lines
139 B
TypeScript

//// [contextualTyping6.ts]
var foo:{id:number;}[] = [{id:1}, {id:2}];
//// [contextualTyping6.js]
var foo = [{ id: 1 }, { id: 2 }];