1 | import { ApolloLink, Observable, Operation, NextLink, FetchResult } from 'apollo-link';
|
2 | import { DelayFunction, DelayFunctionOptions } from './delayFunction';
|
3 | import { RetryFunction, RetryFunctionOptions } from './retryFunction';
|
4 | export declare namespace RetryLink {
|
5 | interface Options {
|
6 | delay?: DelayFunctionOptions | DelayFunction;
|
7 | attempts?: RetryFunctionOptions | RetryFunction;
|
8 | }
|
9 | }
|
10 | export 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 |