Inferring type of TypeScript lookup value

前端 未结 0 1690
眼角桃花
眼角桃花 2021-01-03 00:33

I was expecting the example below to work but it seems that TypeScript cannot reduce the type of my lookup argument based on the value of another argument. Am I missing a tr

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