Typescript Change Index In Array