Typescript: How to constrain property selection by generic parameter's properties and additional type?

后端 未结 0 454
一生所求
一生所求 2021-02-08 21:46

Example of constraining property selection by Generic Parameter\'s T properties only:

type Person = {
  name: string;
  age: number;
  locations: num         


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