@apollo-orbit/angular
Version:
A full-featured GraphQL client for Angular
22 lines (17 loc) • 727 B
TypeScript
import { HttpClient } from '@angular/common/http';
import { BatchHttpLink } from '@apollo/client/link/batch-http';
import * as i0 from '@angular/core';
import { Provider } from '@angular/core';
declare class BatchHttpLinkFactory {
private readonly httpClient;
constructor(httpClient: HttpClient);
create(options?: BatchHttpLink.Options): BatchHttpLink;
static ɵfac: i0.ɵɵFactoryDeclaration<BatchHttpLinkFactory, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<BatchHttpLinkFactory>;
}
interface ApolloOrbitFeature {
kind: `APOLLO_ORBIT_${string}`;
providers: Array<Provider>;
}
declare function withBatchHttpLink(): ApolloOrbitFeature;
export { BatchHttpLinkFactory, withBatchHttpLink };