How to get the keys of a typescript defined type?

后端 未结 0 855
感情败类
感情败类 2020-12-08 20:10

Is it possible to extract the "keys" of a type like i would do with an object?

consider the object variant:

const obj = { 0: \'a\', 1: \'b\',         


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