Create strongly typed array of arrays in TypeScript

前端 未结 4 1835
我在风中等你
我在风中等你 2021-02-03 16:43

In a language like C# I can declare a list of lists like:

List> list_of_lists;

Is there a similar way to declare a strong

4条回答
  •  感动是毒
    2021-02-03 17:25

    int is not a type in TypeScript. You probably want to use number:

    var listOfLists : number[][];
    

提交回复
热议问题