Typescript Type Array Object Index Of Python