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