//// [contextualTyping2.ts]
var foo: {id:number;} = {id:4, name:"foo"};
//// [contextualTyping2.js]
var foo = { id: 4, name: "foo" };