Typescript method return type based on attributes

后端 未结 0 570

Typescript\'s conditional : T extends U ? X : Y syntax is pretty powerful, but I have not found a way to specify the type of a return based on an attribute of a cla

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