UNPKG

@o3r/apis-manager

Version:

This module provides services to help you communicate with your APIs. Its responsibility is to provide an API configuration to a service factory so that it could instantiate an API with the right configurations. It contains a default configuration and a m

25 lines 1.13 kB
import { ModuleWithProviders } from '@angular/core'; import { ApiManager } from './api-manager'; import * as i0 from "@angular/core"; /** * Module that needs to be imported by the application to instantiate an SDK configuration. */ export declare class ApiManagerModule { /** * Provide a custom {@link ApiManager} * A factory can be provided via injection to the token {@link API_TOKEN} * @param apiManager * @deprecated Please use {@link provideApiManager} instead, will be removed in v14. */ static forRoot(apiManager: ApiManager): ModuleWithProviders<ApiManagerModule>; static ɵfac: i0.ɵɵFactoryDeclaration<ApiManagerModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<ApiManagerModule, never, never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<ApiManagerModule>; } /** * Provide a custom {@link ApiManager} * A factory can be provided via injection to the token {@link API_TOKEN} * @param apiManager */ export declare function provideApiManager(apiManager: ApiManager): import("@angular/core").EnvironmentProviders; //# sourceMappingURL=api-manager.module.d.ts.map