To declare a new array in TypeScript, you can use the following syntax:
index.ts193 chars4 lines
You can replace the string and number types with any other type you need.
Note that TypeScript supports both Array<type> and type[] syntax for arrays, and they can be used interchangeably.
gistlibby LogSnag