Glossary: TypeScript Beyond the Basics
Exclude
Also written: Exclude<U, M>
A utility type that removes from a union the members that match another type. `Exclude<Status, "shipped" | "cancelled">` leaves `"pending" | "paid"`.
Glossary: TypeScript Beyond the Basics
Also written: Exclude<U, M>
A utility type that removes from a union the members that match another type. `Exclude<Status, "shipped" | "cancelled">` leaves `"pending" | "paid"`.