augment-vir - v32.2.2
    Preparing search index...

    Type Alias ExcludeExactly<Union, Delete>

    ExcludeExactly: IfNotAnyOrNever<
        Union,
        ExcludeExactlyMember<Union, Delete>,
        If<IsAny<Delete>, never, Union>,
        If<IsNever<Delete>, never, Union>,
    >

    Exclude exactly the given type from a union, instead of excluding every member assignable to it the way the built-in Exclude does.

    Copied from the ExcludeExactly type in the type-fest package so that this package's public types do not depend on type-fest (see the note in type-checks.ts).

    Type Parameters

    • Union
    • Delete