const test = [
{
"a": 1
},
{
"b": 1
}
]
interface t {
[key: string]: number
}
const ttt: t[] = test
Property '"b"' is incompatible with index signature. Type 'undefined' is not assignable to type 'number'. it works if I rename the key either b or a both of same key.