1 | import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
|
2 | import { HttpOptions } from 'apollo-link-http-common';
|
3 | export declare namespace BatchHttpLink {
|
4 | interface Options extends HttpOptions {
|
5 | batchMax?: number;
|
6 | batchInterval?: number;
|
7 | batchKey?: (operation: Operation) => string;
|
8 | }
|
9 | }
|
10 | export declare class BatchHttpLink extends ApolloLink {
|
11 | private batchInterval;
|
12 | private batchMax;
|
13 | private batcher;
|
14 | constructor(fetchParams?: BatchHttpLink.Options);
|
15 | request(operation: Operation): Observable<FetchResult> | null;
|
16 | }
|
17 | //# sourceMappingURL=batchHttpLink.d.ts.map |
\ | No newline at end of file |