Skip to content
Typetypesv0.14.4

TypedExclude

Type-safe version of Exclude that ensures the excluded types are valid members

type TypedExclude<Target, UnionKeys extends Target> = Exclude<
    Target,
    UnionKeys
>;

Target

The union type to exclude from

Target

UnionKeys

The types to exclude from the union

UnionKeys extends Target