apollo-angular
Version:
Use your GraphQL data in your Angular app, with the Apollo Client
20 lines (19 loc) • 845 B
TypeScript
import { HttpClient } from '@angular/common/http';
import { ApolloLink, FetchResult, Observable as LinkObservable, Operation } from '@apollo/client/core';
import { Options } from './types';
import * as i0 from "@angular/core";
export declare class HttpLinkHandler extends ApolloLink {
private readonly httpClient;
private readonly options;
requester: (operation: Operation) => LinkObservable<FetchResult> | null;
private print;
constructor(httpClient: HttpClient, options: Options);
request(op: Operation): LinkObservable<FetchResult> | null;
}
export declare class HttpLink {
private readonly httpClient;
constructor(httpClient: HttpClient);
create(options: Options): HttpLinkHandler;
static ɵfac: i0.ɵɵFactoryDeclaration<HttpLink, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<HttpLink>;
}