Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Type Alias RequireAtLeastOne<T>

RequireAtLeastOne: {
    [K in keyof T]-?: Required<Pick<T, K>> & Partial<
        Pick<T, Exclude<keyof T, K>>,
    >
}[keyof T]

A helper to allow require of at least one property

Type Parameters

  • T
Was this helpful?