1 | import { GraphQLRequest, RequestHandler } from './types';
|
2 | import { ApolloLink } from './link';
|
3 | import Observable from 'zen-observable-ts';
|
4 | export declare function validateLink(link: ApolloLink): ApolloLink;
|
5 | export declare function validateOperation(operation: GraphQLRequest): GraphQLRequest;
|
6 | export declare class LinkError extends Error {
|
7 | link: ApolloLink;
|
8 | constructor(message?: string, link?: ApolloLink);
|
9 | }
|
10 | export declare function toLink(link: ApolloLink | RequestHandler): ApolloLink;
|
11 | export declare function isTerminating(link: ApolloLink): boolean;
|
12 | export declare function makePromise<R>(observable: Observable<R>): Promise<R>;
|