Public function

Signature
function defineMigrations(opts: {
  currentVersion?: number
  firstVersion?: number
  migrators?: Record<number, LegacyMigration>
  subTypeKey?: string
  subTypeMigrations?: Record<string, LegacyBaseMigrationsInfo>
}): LegacyMigrations
Parameters
NameDescription

opts

{
  currentVersion?: number
  firstVersion?: number
  migrators?: Record<number, LegacyMigration>
  subTypeKey?: string
  subTypeMigrations?: Record<
    string,
    LegacyBaseMigrationsInfo
  >
}
Returns
LegacyMigrations
References

LegacyMigration, LegacyMigrations

Source

packages/store/src/lib/migrate.ts

createRecordTypedevFreeze