Skip to main content

Function: configFields()

function configFields(schema): ConfigFieldEntry[];

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

A schema's fields in declaration order, each with its registered metadata.

Parameters

ParameterType
schemaConfigSchema

Returns

ConfigFieldEntry[]

Throws

when a field carries no metadata, which means it was built as a bare zod schema rather than with configField — a mistake the CONFIG_FIELD brand normally catches at compile time, and worth naming loudly in the case that reaches here (a shape assembled dynamically, or from a differing copy of this package).