Can I define a Typescript map having a value constraint corresponding with each value's key?

后端 未结 0 1722
广开言路
广开言路 2020-12-19 08:12

In this playground I would like to create a map containing at most a single action of each type in the Action union. Each of the unioned types is differentiated by having a

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