General Datatypes

type MyList = [number, string, boolean]
 
const arr : MyList = [1,'two',false]

Optional Data

type MyList = [number?, string?, boolean?]
 
const arr : MyList = []
arr.push(1)
arr.push("hello")
arr.push(false)