UNPKG

507 BTypeScriptView Raw
1import { WrapOptions } from "retry";
2/**
3 * Default retry options for doWithRetry.
4 */
5export declare const DefaultRetryOptions: WrapOptions;
6/**
7 * Generic typed retry support
8 * Perform the task, retrying according to the retry options
9 * @param {() => Promise<R>} what
10 * @param {string} description
11 * @param {Object} opts
12 * @return {Promise<R>}
13 */
14export declare function doWithRetry<R>(what: () => Promise<R>, description: string, opts?: WrapOptions): Promise<R>;
15//# sourceMappingURL=retry.d.ts.map
\No newline at end of file