Generic Typescript Method to return any of the Object key types or Object type itself based on input

后端 未结 0 1647
温柔的废话
温柔的废话 2020-12-19 01:18

I want to define a typescript method where method could return a type of Object or any property of the Object. e.g

Person {
   Education,
   Bio
}


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