Skip to content

RequireAtLeastOne<T>

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

Defined in: src/util/util.ts:1006

A helper to allow require of at least one property

Type Parameters

Type Parameter
T