UNPKG

667 BTypeScriptView Raw
1import { ApolloLink, Operation, FetchResult } from '../core';
2import { Observable } from '../../utilities';
3import { HttpOptions } from '../http';
4import { BatchLink } from '../batch';
5export declare namespace BatchHttpLink {
6 type Options = Pick<BatchLink.Options, 'batchMax' | 'batchDebounce' | 'batchInterval' | 'batchKey'> & HttpOptions;
7}
8export declare class BatchHttpLink extends ApolloLink {
9 private batchDebounce?;
10 private batchInterval;
11 private batchMax;
12 private batcher;
13 constructor(fetchParams?: BatchHttpLink.Options);
14 request(operation: Operation): Observable<FetchResult> | null;
15}
16//# sourceMappingURL=batchHttpLink.d.ts.map
\No newline at end of file