Public function

Signature
function migrate<T>({
  value,
  migrations,
  fromVersion,
  toVersion,
}: {
  value: unknown
  migrations: Migrations
  fromVersion: number
  toVersion: number
}): MigrationResult<T>
Parameters
NameDescription

{ value, migrations, fromVersion, toVersion, }

{
  value: unknown
  migrations: Migrations
  fromVersion: number
  toVersion: number
}
Returns
MigrationResult<T>
References

Migrations, MigrationResult

Source

packages/store/src/lib/migrate.ts

IdOfmigrateRecord