UNPKG

1.6 kBTypeScriptView Raw
1import { Apollo } from 'apollo-angular';
2import { ApolloCache } from '@apollo/client/core';
3import { InjectionToken } from '@angular/core';
4import { ApolloTestingBackend } from './backend';
5import * as i0 from "@angular/core";
6import * as i1 from "apollo-angular";
7export declare type NamedCaches = Record<string, ApolloCache<any> | undefined | null>;
8export declare const APOLLO_TESTING_CACHE: InjectionToken<ApolloCache<any>>;
9export declare const APOLLO_TESTING_NAMED_CACHE: InjectionToken<NamedCaches>;
10export declare const APOLLO_TESTING_CLIENTS: InjectionToken<string[]>;
11export declare class ApolloTestingModuleCore {
12 constructor(apollo: Apollo, backend: ApolloTestingBackend, namedClients?: string[], cache?: ApolloCache<any>, namedCaches?: any);
13 static ɵfac: i0.ɵɵFactoryDeclaration<ApolloTestingModuleCore, [null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
14 static ɵmod: i0.ɵɵNgModuleDeclaration<ApolloTestingModuleCore, never, [typeof i1.ApolloModule], never>;
15 static ɵinj: i0.ɵɵInjectorDeclaration<ApolloTestingModuleCore>;
16}
17export declare class ApolloTestingModule {
18 static withClients(names: string[]): {
19 ngModule: typeof ApolloTestingModuleCore;
20 providers: {
21 provide: InjectionToken<string[]>;
22 useValue: string[];
23 }[];
24 };
25 static ɵfac: i0.ɵɵFactoryDeclaration<ApolloTestingModule, never>;
26 static ɵmod: i0.ɵɵNgModuleDeclaration<ApolloTestingModule, never, [typeof ApolloTestingModuleCore], never>;
27 static ɵinj: i0.ɵɵInjectorDeclaration<ApolloTestingModule>;
28}