UNPKG

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