API Reference / @gtkx/config / index / loadConfig
Variable: loadConfig
constloadConfig: (cwd,options?) =>Promise<LoadedConfig>
Defined in: loader.d.ts:32
Loads and validates the gtkx.config.ts file for a project.
Parameters
cwd
string
Directory the configuration file is looked up in.
options?
LoadConfigOptions
Loading options, such as the environment mode whose overrides are applied.
Returns
Promise<LoadedConfig>
Throws
When the configuration fails validation, or when no configuration file is found.