Typescript Type In Array Javascript Iterations In Python