@dxos/echo
    Preparing search index...

    Interface ContentMigration

    Definition of one step of a content format: upgrades the fields a type's ContentVersionAnnotation names from content version from to to.

    interface ContentMigration {
        "~@dxos/echo/Migration": "~@dxos/echo/Migration";
        fields: readonly string[];
        from: string;
        kind: "content";
        recordFields: readonly string[];
        since: string;
        to: string;
        transform: (content: Readonly) => Readonly;
        type: URI.URI;
        versionField: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    "~@dxos/echo/Migration": "~@dxos/echo/Migration"
    fields: readonly string[]

    The content fields the version describes.

    from: string

    Content version this step reads.

    kind: "content"
    recordFields: readonly string[]

    Content fields declared as records, which the runner writes key by key.

    since: string

    Release that first ships this step, which decides when it can be deleted.

    to: string

    Content version this step writes.

    transform: (content: Readonly) => Readonly

    Pure, deterministic upgrade of the content fields.

    type: URI.URI

    URI of the object type whose content this step upgrades.

    versionField: string

    The string field holding the content version.