UNPKG

1.07 kBTypeScriptView Raw
1import Observable from 'zen-observable-ts';
2import { GraphQLRequest, Operation } from './types';
3import { ApolloLink } from './link';
4import { getOperationName } from 'apollo-utilities';
5export { getOperationName };
6export declare function validateOperation(operation: GraphQLRequest): GraphQLRequest;
7export declare class LinkError extends Error {
8 link: ApolloLink;
9 constructor(message?: string, link?: ApolloLink);
10}
11export declare function isTerminating(link: ApolloLink): boolean;
12export declare function toPromise<R>(observable: Observable<R>): Promise<R>;
13export declare const makePromise: typeof toPromise;
14export declare function fromPromise<T>(promise: Promise<T>): Observable<T>;
15export declare function fromError<T>(errorValue: any): Observable<T>;
16export declare function transformOperation(operation: GraphQLRequest): GraphQLRequest;
17export declare function createOperation(starting: any, operation: GraphQLRequest): Operation;
18export declare function getKey(operation: GraphQLRequest): string;
19//# sourceMappingURL=linkUtils.d.ts.map
\No newline at end of file