export type RequireOnlyOne = Pick> & { [K in Keys]-?: Required> & Partial, undefined>>; }[Keys]; export type WithApiCallback = T & { success?: (S?: any) => void; fail?: (F?: any) => void; complete?: (C?: any) => void; };