halo - v1.0.0
    Preparing search index...

    Type Alias AtLeastOne<T, Keys>

    AtLeastOne: Keys extends keyof T
        ? Required<Pick<T, Keys>> & Partial<Omit<T, Keys>>
        : never

    AtLeastOne is a utility type that ensures at least one of the specified keys in T is required. It allows for flexibility in defining types where at least one property must be present.

    Type Parameters

    • T

      The type to apply the AtLeastOne constraint to.

    • Keys extends keyof T = keyof T

      The keys of T that are required at least once.