Why typescript cannot infer that type cannot be null in this case?
type
export type SomeType = | { type: "none" } | { type: "new&qu