Check out example codes for "typescript how to create an array instance". It will help you in understanding the concepts better.

Code Example 1

let list: number[] = [1, 2, 3];

Code Example 2

var myInstance:MyArrayType[] = [];

Code Example 3

const count = [...Array(5)];
count.map((_) => console.log('hi'));

Learn ReactJs, React Native from akashmittal.com