9 lines
285 B
TypeScript
9 lines
285 B
TypeScript
interface RetryOptions {
|
|
maxAttempts?: number;
|
|
baseDelay?: number;
|
|
maxDelay?: number;
|
|
shouldRetry?: (error: any) => boolean;
|
|
}
|
|
export declare function withRetry<T>(fn: () => Promise<T>, options?: RetryOptions): Promise<T>;
|
|
export {};
|
|
//# sourceMappingURL=retry.d.ts.map
|