Skip to content

API Reference / @gtkx/config / index / ConfigLoader

Type Alias: ConfigLoader

ConfigLoader = object

Defined in: loader.d.ts:20

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

Properties

load

load: (cwd) => Promise<LoadedConfig>

Defined in: loader.d.ts:22

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: loader.d.ts:24

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

Parameters

cwd

string

Returns

Promise<ResolvedConfig>

Released under the MPL-2.0 License.