What's the difference between these two?
let foo:{ [index:string] : string } = {
['hello']: 'world'
};
let bar:{ [index:string] : string } = {
'hello': 'world'
};
I get the same result (world
) when for the two values
console.log(foo['hello'])
console.log(bar['hello'])