When you have a type which is an array of objects you can access the object's properties by using the dot notation. For example:
let foo = {
arrKey: [{key: "value"}]
}
foo.arrKey[0].key // "value"
However, if you have an array of strings and objects then you'll need to use the bracket notation. For example:
let foo = {
arrKey: [
"first item",
{key: "value"}
]
}
foo.arrKey[1].key
// ERROR
// Property 'key' does not exist on type 'string | { key: string; }'.
// Property 'key' does not exist on type 'string'.ts(2339)
foo.arrKey[1]["key"] // "value"