hexo/node_modules/atomically/dist/utils/retryify.d.ts

5 lines
349 B
TypeScript
Raw Normal View History

2023-09-25 15:58:56 +08:00
import { Exception, FN } from '../types';
declare const retryifyAsync: <T extends FN<any[], any>>(fn: T, isRetriableError: FN<[Exception], boolean | void>) => FN<[number], T>;
declare const retryifySync: <T extends FN<any[], any>>(fn: T, isRetriableError: FN<[Exception], boolean | void>) => FN<[number], T>;
export { retryifyAsync, retryifySync };