UNPKG

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