@dagonmetric/ng-config
Version:
Configuration and options service for Angular applications.
24 lines (23 loc) • 927 B
TypeScript
/**
* @license
* Copyright DagonMetric. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found under the LICENSE file in the root directory of this source tree.
*/
import { HttpClient } from '@angular/common/http';
import { Injector } from '@angular/core';
import { Observable } from 'rxjs';
import { ConfigProvider, ConfigSection } from '@dagonmetric/ng-config';
import { HttpConfigProviderOptions } from './http-config-provider-options';
/**
* Implements an HTTP client API for HttpConfigProvider that relies on the Angular HttpClient.
*/
export declare class HttpConfigProvider implements ConfigProvider {
private readonly httpClient;
get name(): string;
get endpoint(): string;
private readonly configEndpoint;
constructor(httpClient: HttpClient, injector: Injector, options: HttpConfigProviderOptions);
load(): Observable<ConfigSection>;
}