Динамический массив TypeScript

(yourArray as any)[index] = value;
Matyáš Teplý