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

    Type Alias RequireOneOrNone<ObjectType, KeysType>

    RequireOneOrNone: IfNotAnyOrNever<
        ObjectType,
        If<
            IsNever<KeysType>,
            ObjectType,
            RequireOneOrNoneHelper<
                ObjectType,
                If<IsAny<KeysType>, keyof ObjectType, KeysType>,
            >,
        >,
    >

    Create a type that requires exactly one of the given keys or none of the given keys, while keeping the remaining keys as is.

    Copied from the RequireOneOrNone 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