Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / config

config

The @zerotal/core/config subpath — the runtime configuration system.

Config lives in a set of config/*.ts files, each default-exporting one namespace object (config/app.ts → the app namespace). configLoader discovers and loads them synchronously into a ConfigLoader, which the application hands to a ConfigManager — the store that serves dot-path reads/writes behind the Config facade and the config() helper. AppConfig builds the framework's own app namespace with defaults, and the ConfigRegistry interface makes dot-path access type-checked.

The everyday config() helper lives on the kernel barrel (@zerotal/core); the symbols here are the lower-level classes and types used when defining or wiring configuration.

Example

import { configLoader } from "@zerotal/core/config";
import { Application } from "@zerotal/core";

// In the entry script — load and validate config, then boot the app.
const config = configLoader("./config").validate();
const app = Application.create({ config });

Errors

Other