VersionDef
Defined in: packages/core/src/types.ts:90
Defines a specific version of the configuration schema and how to migrate to it.
Type Parameters
Section titled “Type Parameters”TPrev
The type of the configuration in the previous version.
TNext
The type of the configuration in this version.
Properties
Section titled “Properties”migration()?
Section titled “migration()?”
optionalmigration: (prev) =>TNext
Defined in: packages/core/src/types.ts:99
A function that transforms the configuration from the previous version (TPrev)
to this version (TNext).
Parameters
Section titled “Parameters”TPrev
Returns
Section titled “Returns”TNext
schema
Section titled “schema”schema:
ZodType<TNext>
Defined in: packages/core/src/types.ts:94
The Zod schema defining the shape and defaults of this version.
version
Section titled “version”version:
number
Defined in: packages/core/src/types.ts:92
The schema version number (must be incremental).