Omit<Type, Keys>
Creates a new type by removing one or more properties from an object type.
It is the inverse of Pick
, and is useful when you want most of an object without a few fields.
It is often useful when specifying object operations.
You can create your own Omit
by combining Pick
and Exclude
.
The MyOmit
type is an improved utility type from the TypeScript FAQs that adds key constraints.