Skip to main content
zerotal

Documentation


Documentation / zerotal / config-reexport / ConfigValidator

Type Alias: ConfigValidator

ConfigValidator = (value, ctx) => ConfigIssue[] | void

Defined in: packages/core/src/config/validation.ts:50

Validates one config namespace's loaded value and returns any problems found.

The value arrives as unknown — config is a dynamic dot-path store, so a validator narrows to its namespace's shape itself (usually with a single cast to the package's *ConfigShape). Return an empty array (or nothing) when the namespace is well-formed.

Parameters

value

unknown

ctx

ConfigValidationContext

Returns

ConfigIssue[] | void