Is there a one-liner to instantiate an object that has a KeyOf style type parameter?

前端 未结 0 732
暗喜
暗喜 2020-12-29 11:32

TypeScript has no trouble letting me assign the myValue field on objects of this type, but I couldn\'t figure out to directly instantiate one of these objects and assign myV

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