@creditkarma/dynamic-config
Version:
Dynamic Config for Node.js backed by Consul and Vault
14 lines (13 loc) • 707 B
TypeScript
export declare function some(promises: Array<Promise<any>>): Promise<Array<any>>;
/**
* Given an array of Promises return a new Promise that resolves with the value
* of the first of the array to resolve, ignoring rejections. The resulting Promise
* only rejects if all of the Promises reject.
*/
export declare function race(promises: Array<Promise<any>>): Promise<any>;
/**
* 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<object>>): Promise<Array<object>>;
export declare function resolveObjectPromises(obj: object): Promise<any>;