10 lines
No EOL
556 B
TypeScript
10 lines
No EOL
556 B
TypeScript
/**
|
|
* Retry a given promise with gradually increasing delay.
|
|
*
|
|
* @param promise a function that returns a promise to retry
|
|
* @param maxRetries the maximum number of times to retry
|
|
* @param initialDelay the initial value to delay before retrying (in milliseconds)
|
|
* @returns a promise resolving to the result of the promise from the promise generating function, or undefined
|
|
*/
|
|
export declare function retry<T>(promise: (n: number) => Promise<T>, maxRetries: number, initialDelay?: number): Promise<T | undefined>;
|
|
//# sourceMappingURL=retry.d.ts.map
|