Public function

Signature
function migrateRecord<R extends UnknownRecord>({
  record,
  migrations,
  fromVersion,
  toVersion,
}: {
  record: unknown
  migrations: Migrations
  fromVersion: number
  toVersion: number
}): MigrationResult<R>
Parameters
NameDescription

{ record, migrations, fromVersion, toVersion, }

{
  record: unknown
  migrations: Migrations
  fromVersion: number
  toVersion: number
}
Returns
MigrationResult<R>
References

UnknownRecord, Migrations, MigrationResult

Source

packages/store/src/lib/migrate.ts

migrateMigration