Initial Save
This commit is contained in:
18
node_modules/apollo-link/lib/link.d.ts
generated
vendored
Normal file
18
node_modules/apollo-link/lib/link.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import Observable from 'zen-observable-ts';
|
||||
import { GraphQLRequest, NextLink, Operation, RequestHandler, FetchResult } from './types';
|
||||
export declare function empty(): ApolloLink;
|
||||
export declare function from(links: ApolloLink[]): ApolloLink;
|
||||
export declare function split(test: (op: Operation) => boolean, left: ApolloLink | RequestHandler, right?: ApolloLink | RequestHandler): ApolloLink;
|
||||
export declare const concat: (first: RequestHandler | ApolloLink, second: RequestHandler | ApolloLink) => ApolloLink;
|
||||
export declare class ApolloLink {
|
||||
static empty: typeof empty;
|
||||
static from: typeof from;
|
||||
static split: typeof split;
|
||||
static execute: typeof execute;
|
||||
constructor(request?: RequestHandler);
|
||||
split(test: (op: Operation) => boolean, left: ApolloLink | RequestHandler, right?: ApolloLink | RequestHandler): ApolloLink;
|
||||
concat(next: ApolloLink | RequestHandler): ApolloLink;
|
||||
request(operation: Operation, forward?: NextLink): Observable<FetchResult> | null;
|
||||
}
|
||||
export declare function execute(link: ApolloLink, operation: GraphQLRequest): Observable<FetchResult>;
|
||||
//# sourceMappingURL=link.d.ts.map
|
||||
Reference in New Issue
Block a user