Create strongly typed array of arrays in TypeScript

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

    The simplest is:

    x: Array>
    

    And, if you need something more complex, you can do something like this:

    y: Array>
    

提交回复
热议问题