Skip to main content

Variable: CONFIG_FIELD

const CONFIG_FIELD: unique symbol;

Defined in: packages/overcast-core/src/config-schema.ts:74

The brand configField stamps a parser with, so that a schema field declared any other way does not typecheck.

Load-bearing rather than decorative: nothing about zod requires a schema to be registered, so without it a field written as a plain z.string().optional() would compile and then be unnameable — no env var, no flag, no help text. ConfigShape asks for the brand, configField is the only thing that applies it, and applying it is what registers the metadata.