/** Utility type: makes one field required */ export type AtLeastOne }> = Partial & U[keyof U]; export type ValueOf = T[keyof T]; /** Utility type: makes K required when Cond is true */ export type RequireIf = Cond extends true ? Obj & Required> : Obj;