Skip to main content
Version: Next

Type Alias: MigrationPath<K>

MigrationPath<K> = MigrationRule<unknown, unknown, K>[]

Defined in: src/Mnemonic/types.ts:550

An ordered sequence of MigrationRule steps that upgrades stored data from an older schema version to a newer one.

The rules are applied in array order. Each step's output becomes the next step's input. After the final step the result is validated against the target schema and persisted back to storage so the migration only runs once per key.

Type Parameters

Type ParameterDefault type
K extends stringstring

See