Create strongly typed array of arrays in TypeScript

前端 未结 4 1735
我在风中等你
我在风中等你 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:16

    You do it exactly like in Java/C#, e.g. (in a class):

    class SomeClass {
        public someVariable: Array>;
    }
    

    Or as a standalone variable:

    var someOtherVariable: Array>;
    

提交回复
热议问题