How to get the index number of a type from an Array type in typescript?

后端 未结 0 1130
日久生厌
日久生厌 2021-01-18 03:20

consider the following typescript code:


type Data = [string, number, symbol]; // Array of types

// If I want to access \'symbol\' I would do this:
type Valu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题