UNPKG

657 BTypeScriptView Raw
1import { HttpClient } from '@angular/common/http';
2import { ApolloLink, Observable as LinkObservable, Operation, FetchResult } from 'apollo-link';
3import { Options } from 'apollo-angular-link-http-common';
4export declare class HttpLinkHandler extends ApolloLink {
5 private httpClient;
6 private options;
7 requester: (operation: Operation) => LinkObservable<FetchResult> | null;
8 constructor(httpClient: HttpClient, options: Options);
9 request(op: Operation): LinkObservable<FetchResult> | null;
10}
11export declare class HttpLink {
12 private httpClient;
13 constructor(httpClient: HttpClient);
14 create(options: Options): HttpLinkHandler;
15}