@webdeveric/utils
    Preparing search index...

    Type Alias RequireAtLeastOne<Type, Keys>

    RequireAtLeastOne: Pick<Type, Exclude<keyof Type, Keys>> & {
        [Key in Keys]-?: Required<Pick<Type, Key>> & Partial<
            Pick<Type, Exclude<Keys, Key>>,
        >
    }[Keys]

    Type Parameters

    • Type
    • Keys extends keyof Type = keyof Type