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 Parameter | Default type |
|---|---|
K extends string | string |
See
- MigrationRule - Individual migration step
- SchemaRegistry.getMigrationPath - Resolves a path between versions