[**Documentation**](../../../README)

***

[Documentation](../../../README) / [zerotal](../../README) / [config-reexport](../README) / ConfigValidator

# Type Alias: ConfigValidator

> **ConfigValidator** = (`value`, `ctx`) => [`ConfigIssue`](../interfaces/ConfigIssue)[] \| `void`

Defined in: [packages/core/src/config/validation.ts:50](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/config/validation.ts#L50)

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`](../interfaces/ConfigValidationContext)

## Returns

[`ConfigIssue`](../interfaces/ConfigIssue)[] \| `void`
