How to declare a Fixed length Array in TypeScript
This solution provides a strict FixedLengthArray (ak.a. SealedArray) type signature based in Tuples. Syntax example : // Array containing 3 strings let foo : FixedLengthArray This is the safest approach, considering it prevents accessing indexes out of the boundaries.
https://stackoverflow.com/questions/41139763/how-to-declare-a-fixed-length-array-in-typescript