@medusajs/utils
Version:
Medusa utilities functions shared by Medusa core and Modules
16 lines • 643 B
TypeScript
/**
* Attempts to resolve the config file in a given root directory.
* @param {string} rootDir - the directory to find the config file in.
* @param {string} configName - the name of the config file.
* @return {object} an object containing the config module and its path as well as an error property if the config couldn't be loaded.
*/
export declare function getConfigFile<TConfig = unknown>(rootDir: string, configName: string): Promise<{
configModule: null;
configFilePath: string;
error: Error;
} | {
configModule: TConfig;
configFilePath: string;
error: null;
}>;
//# sourceMappingURL=get-config-file.d.ts.map