typescript array of some types code example Example: typescript how to create an array instance var myInstance:MyArrayType[] = [];