Function: normalizeConfig()
normalizeConfig(
config):ZodFormsConfig<Record<string,unknown>>
Defined in: packages/core/src/config.ts:551
Normalize a validated config by migrating deprecated top-level fields to their canonical locations.
Currently handles the legacy top-level overwrite key — moves it into defaults.overwrite
so the rest of the pipeline can assume the normalized shape.
Parameters
config
ZodFormsConfig<Record<string, unknown>>
A fully validated ZodFormsConfig (output of validateConfig).
Returns
ZodFormsConfig<Record<string, unknown>>
The same config with any deprecated top-level fields migrated into defaults.