UNPKG

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