Skip to content

API Reference / @gtkx/config / index / ConfigLoader

Type Alias: ConfigLoader ​

ConfigLoader = object

Defined in: packages/config/src/loader.ts:41

Reads a project's configuration once per directory, caching what it loads and what it resolves.

Properties ​

load ​

load: (cwd) => Promise<LoadedConfig>

Defined in: packages/config/src/loader.ts:43

Loads the configuration file the given directory resolves to, as loadConfig does.

Parameters ​

cwd ​

string

Returns ​

Promise<LoadedConfig>


resolve ​

resolve: (cwd) => Promise<ResolvedConfig>

Defined in: packages/config/src/loader.ts:45

Loads the configuration for the given directory and reduces it to what the build and the app need.

Parameters ​

cwd ​

string

Returns ​

Promise<ResolvedConfig>