Skip to content

API Reference / @gtkx/config / index / loadConfig

Variable: loadConfig

const loadConfig: (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.

Released under the MPL-2.0 License.