How to define Map with correlation between a key type and a value type, while they both are unions

前端 未结 0 1874
忘了有多久
忘了有多久 2021-01-26 02:29

Here is the example which shows what I want to achieve. It almost works except 2 problems:

  1. Set does not show an error on incorrect code
  2. Immer Draft type (o
相关标签:
回答
  • 消灭零回复
提交回复
热议问题