mirror of https://github.com/jkjoy/sunpeiwen.git
4 lines
321 B
TypeScript
4 lines
321 B
TypeScript
declare const retryifyAsync: <FN extends Function>(fn: FN, isRetriableError: (error: unknown) => boolean | void) => (timeout: number) => FN;
|
|
declare const retryifySync: <FN extends Function>(fn: FN, isRetriableError: (error: unknown) => boolean | void) => (timeout: number) => FN;
|
|
export { retryifyAsync, retryifySync };
|