@restorecommerce/chassis-srv
Version:
Restore Commerce microservice chassis
14 lines (13 loc) • 504 B
TypeScript
/**
* Loads the configuration and stores it in the config singleton.
* @param {string} baseDir Directory which contains the folder cfg with the config files.
* @param [Logger] logger
*/
export declare const load: (baseDir: string, logger?: any) => Promise<any>;
/**
* Get config from singleton.
* If singleton is undefined load id from current working directory.
* @param [Logger] logger
* @return {Object} nconf configuration object
*/
export declare const get: (logger?: any) => Promise<any>;