1 | import { ApolloLink, Operation, FetchResult, NextLink } from '../core';
|
2 | import { Observable } from '../../utilities';
|
3 | import { BatchHandler } from './batching';
|
4 | export { OperationBatcher, BatchableRequest, BatchHandler } from './batching';
|
5 | export 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 | }
|
14 | export 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 |