UNPKG

@apollo/client

Version:

A fully-featured caching GraphQL client.

18 lines 776 B
import type { Operation, FetchResult, NextLink } from "../core/index.js"; import { ApolloLink } from "../core/index.js"; import { Observable } from "../../utilities/index.js"; import type { DelayFunction, DelayFunctionOptions } from "./delayFunction.js"; import type { RetryFunction, RetryFunctionOptions } from "./retryFunction.js"; export declare namespace RetryLink { interface Options { delay?: DelayFunctionOptions | DelayFunction; attempts?: RetryFunctionOptions | RetryFunction; } } export declare class RetryLink extends ApolloLink { private delayFor; private retryIf; constructor(options?: RetryLink.Options); request(operation: Operation, nextLink: NextLink): Observable<FetchResult>; } //# sourceMappingURL=retryLink.d.ts.map