Skip to content

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.

T extends ExtendableConfig

string

The configuration ID (name) to search for.

ExtendableConfigParser

A parser to validate/transform the config object.

PartialDeep<T>

Default configuration values.

LoadConfigOptions

Optional settings for loading and resolving the config.

Promise<Omit<T, "extends">>

The resolved configuration object without the “extends” field.