Typescript: mapping object values with union types not working as expected

后端 未结 0 1576
慢半拍i
慢半拍i 2020-12-08 14:39

If I want to map object values where the values are all primitives, it\'s pretty straightforward:

type ObjectOf = { [k: string]: T };

type MapObj<         


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