Using property name in typescript declaration

后端 未结 0 1962
误落风尘
误落风尘 2021-02-06 20:25

Is there a way to get/use the actual property name in an Typescript type definition.

type Mapped = {
  [P:string]: P;
}

Where Mapped["

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