UNPKG

447 BTypeScriptView Raw
1import { Operation } from 'apollo-link';
2export interface RetryFunction {
3 (count: number, operation: Operation, error: any): boolean | Promise<boolean>;
4}
5export interface RetryFunctionOptions {
6 max?: number;
7 retryIf?: (error: any, operation: Operation) => boolean | Promise<boolean>;
8}
9export declare function buildRetryFunction(retryOptions?: RetryFunctionOptions): RetryFunction;
10//# sourceMappingURL=retryFunction.d.ts.map
\No newline at end of file