Construct a type with the properties of T except for those whose value is never
never
type A = OmitNever<"a" | never>; // A = "a"type B = OmitNever<{ a: never; b: 1 }> // B = { b: 1; } Copy
type A = OmitNever<"a" | never>; // A = "a"type B = OmitNever<{ a: never; b: 1 }> // B = { b: 1; }
Construct a type with the properties of T except for those whose value is
never