TypeScript: Can I use `never` to eliminate branches of a tagged union?

前端 未结 0 709
借酒劲吻你
借酒劲吻你 2021-01-13 04:44

I have a generic utility type called Result for operations that might return a value or might return an error:

<         


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