UNPKG

742 BTypeScriptView Raw
1import { ApolloLink, Operation, FetchResult, NextLink } from '../core';
2import { Observable } from '../../utilities';
3import { BatchHandler } from './batching';
4export { OperationBatcher, BatchableRequest, BatchHandler } from './batching';
5export declare namespace BatchLink {
6 interface Options {
7 batchInterval?: number;
8 batchDebounce?: boolean;
9 batchMax?: number;
10 batchHandler?: BatchHandler;
11 batchKey?: (operation: Operation) => string;
12 }
13}
14export declare class BatchLink extends ApolloLink {
15 private batcher;
16 constructor(fetchParams?: BatchLink.Options);
17 request(operation: Operation, forward?: NextLink): Observable<FetchResult> | null;
18}
19//# sourceMappingURL=batchLink.d.ts.map
\No newline at end of file