@dagonmetric/ng-config-firebase-remote-config
Version:
Google Firebase Remote Config integration of @dagonMetric/ng-config for Angular applications.
39 lines (38 loc) • 1.34 kB
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 { InjectionToken } from '@angular/core';
export interface FirebaseConfig {
[key: string]: string | undefined;
apiKey?: string;
projectId?: string;
appId?: string;
authDomain?: string;
databaseURL?: string;
storageBucket?: string;
messagingSenderId?: string;
}
export interface FirebaseRemoteConfigSettings {
/**
* Defines the maximum age in milliseconds of an entry in the config cache before
* it is considered stale. Defaults to 43200000 (Twelve hours).
*/
minimumFetchIntervalMillis?: number;
/**
* Defines the maximum amount of milliseconds to wait for a response when fetching
* configuration from the Remote Config server. Defaults to 60000 (One minute).
*/
fetchTimeoutMillis?: number;
}
export interface FirebaseRemoteConfigProviderOptions {
firebaseConfig: FirebaseConfig;
appName?: string;
remoteConfigSettings?: FirebaseRemoteConfigSettings;
throwIfLoadError?: boolean;
prefix?: string;
}
export declare const FIREBASE_REMOTE_CONFIG_PROVIDER_OPTIONS: InjectionToken<FirebaseRemoteConfigProviderOptions>;