Exclude<T, U>

The utility type that removes from union T every member assignable to U, such as Exclude<HttpMethod, "GET">.

In more detail

Omit removes keys from an object; Exclude removes members from a union. It is a distributive conditional type under the hood.

Related terms

Taught in

References