@s-libs/js-core
    Preparing search index...

    Type Alias MigrateFunction<T>

    MigrateFunction: (source: T, targetVersion: number) => T

    A migration that can be registered with MigrationManager. Note that the function does not need to migrate all the way to targetVersion, only to something higher than source._version. Usually a migration will only upgrade by 1.

    Type Parameters

    • T

    Type declaration

      • (source: T, targetVersion: number): T
      • Parameters

        • source: T
        • targetVersion: number

        Returns T