@creditkarma/dynamic-config
Version:
Dynamic Config for Node.js backed by Consul and Vault
9 lines (8 loc) • 330 B
TypeScript
import { IConfigStore, IRootConfigValue } from './types';
export declare class SyncConfig implements IConfigStore {
private config;
constructor(config: IRootConfigValue);
get<T = any>(key: string): T | null;
getAll(...args: Array<string>): Array<any>;
getWithDefault<T = any>(key: string, defaultVal: T): T;
}