Why typescript cannot infer that `type` cannot be null in this case?

后端 未结 0 767
遇见更好的自我
遇见更好的自我 2020-11-21 18:04

Why typescript cannot infer that type cannot be null in this case?

export type SomeType =
  | { type: "none" }
  | { type: "new&qu         


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