Construct a type with the properties of union type T except for those in type K.
type Result = UnionOmit<{ a: string, b: number } | { a: string, b: undefined, c: number }, 'a'>=> { b: number } | { b: undefined, c: number } Copy
type Result = UnionOmit<{ a: string, b: number } | { a: string, b: undefined, c: number }, 'a'>=> { b: number } | { b: undefined, c: number }
Generated using TypeDoc
Description
Construct a type with the properties of union type T except for those in type K.
Example