Generic way to assign sum-type parameter to an object

前端 未结 0 419
滥情空心
滥情空心 2021-01-16 06:31

I\'m exploring TypeScript\'s type system and wanted to keep my Redux actions type-safe without getting too much boilerplate. I\'ve come up with an idea to use sum/union type

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