import { AnyRecord } from "../any-record"; import { IsAny } from "../is-any"; import { StrictOmit } from "../strict-omit"; type _RequireAtMostOne = { [Key in Keys]: Required> & Partial, never>>; }[Keys] & StrictOmit; export type RequireAtMostOne = IsAny extends true ? any : _RequireAtMostOne; export {};