@dxos/echo
    Preparing search index...

    Interface ObjectMigration

    Definition of a migration from one object schema version to another.

    interface ObjectMigration {
        "~@dxos/echo/Migration": "~@dxos/echo/Migration";
        fromSchema: Codec<any, any>;
        fromType: URI.URI;
        kind: "object";
        onMigration?: (params: OnMigrateProps<any, any>) => Promise<void>;
        toSchema: Codec<any, any>;
        toType: URI.URI;
        transform: (
            from: unknown,
            context: ObjectMigrationContext,
        ) => Promise<unknown>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    "~@dxos/echo/Migration": "~@dxos/echo/Migration"
    fromSchema: Codec<any, any>
    fromType: URI.URI
    kind: "object"
    onMigration?: (params: OnMigrateProps<any, any>) => Promise<void>
    toSchema: Codec<any, any>
    toType: URI.URI
    transform: (from: unknown, context: ObjectMigrationContext) => Promise<unknown>