TS How to have a contextual type outside of a class instance?

后端 未结 0 1739
甜味超标
甜味超标 2020-12-30 06:33

TS only allows using the this type in a class or interface method, but I\'m looking for how I can use it or something similar, but anywhere.

Take this ex

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