Skip to content

VersionDef

Defined in: packages/core/src/types.ts:90

Defines a specific version of the configuration schema and how to migrate to it.

TPrev

The type of the configuration in the previous version.

TNext

The type of the configuration in this version.

optional migration: (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).

TPrev

TNext


schema: ZodType<TNext>

Defined in: packages/core/src/types.ts:94

The Zod schema defining the shape and defaults of this version.


version: number

Defined in: packages/core/src/types.ts:92

The schema version number (must be incremental).