loadCliConfig
loadCliConfig<
T>(configId,configParser,defaultConfig,options?):Promise<Omit<T,"extends">>
Defined in: load-config.ts:33
Load a CLI configuration file using cosmiconfig, supporting “extends” field.
Type Parameters
Section titled “Type Parameters”T extends ExtendableConfig
Parameters
Section titled “Parameters”configId
Section titled “configId”string
The configuration ID (name) to search for.
configParser
Section titled “configParser”A parser to validate/transform the config object.
defaultConfig
Section titled “defaultConfig”PartialDeep<T>
Default configuration values.
options?
Section titled “options?”Optional settings for loading and resolving the config.
Returns
Section titled “Returns”Promise<Omit<T, "extends">>
The resolved configuration object without the “extends” field.