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

    Type Alias RequireExactlyOne<ObjectType, KeysType>

    RequireExactlyOne: IfNotAnyOrNever<
        ObjectType,
        If<
            IsNever<KeysType>,
            never,
            RequireExactlyOneHelper<
                ObjectType,
                If<IsAny<KeysType>, keyof ObjectType, KeysType>,
            >,
        >,
    >

    Create a type that requires exactly one of the given keys and disallows the rest, while keeping the remaining (non-listed) keys as is.

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

    Type Parameters