Skip to content

VersionDef

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

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

TPrev

The type of the configuration in the previous version.

TNextSchema extends ZodType = ZodType

The Zod schema defining the shape of the configuration in this version.

optional migration: (prev) => input<TNextSchema>

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

A function that transforms the configuration from the previous version (TPrev) to the input of this version’s schema.

TPrev

input<TNextSchema>


schema: TNextSchema

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

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


version: number

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

The schema version number (must be incremental).