UNPKG

@creditkarma/dynamic-config

Version:

Dynamic Config for Node.js backed by Consul and Vault

8 lines (7 loc) 427 B
import { BaseConfigValue, ConfigValue } from '../types'; /** * Recursively traverses an object, looking for keys with Promised values and returns a Promise of * the object with all nested Promises resolved. */ export declare function valuesForPromises(promises: Array<Promise<BaseConfigValue>>): Promise<Array<BaseConfigValue>>; export declare function resolveConfigPromises(configValue: ConfigValue): Promise<ConfigValue>;