UNPKG

687 BTypeScriptView Raw
1import { ApolloLink, Observable, Operation, NextLink, FetchResult } from 'apollo-link';
2import { DelayFunction, DelayFunctionOptions } from './delayFunction';
3import { RetryFunction, RetryFunctionOptions } from './retryFunction';
4export declare namespace RetryLink {
5 interface Options {
6 delay?: DelayFunctionOptions | DelayFunction;
7 attempts?: RetryFunctionOptions | RetryFunction;
8 }
9}
10export declare class RetryLink extends ApolloLink {
11 private delayFor;
12 private retryIf;
13 constructor(options?: RetryLink.Options);
14 request(operation: Operation, nextLink: NextLink): Observable<FetchResult>;
15}
16//# sourceMappingURL=retryLink.d.ts.map
\No newline at end of file