Object declaration syntax in TypeScript
open in playground on www.typescriptlang.orglet foo:{[index:string]:number} = {foo: 1};
let foo:{[index:string]:number} = {
foo: 1
};
open in playground on www.typescriptlang.orglet foo:{[index:string]:number} = {foo: 1};
let foo:{[index:string]:number} = {
foo: 1
};