@mocanvas/store · function

createRecordMigrationSequence

declare function createRecordMigrationSequence(options: {
    sequenceId: string;
    recordType: string;
    retroactive?: boolean | undefined;
    filter?: ((record: UnknownRecord) => boolean) | undefined;
    sequence: readonly Omit<RecordMigration, "scope" | "filter">[];
}): MigrationSequence

Convenience for the common case: a sequence of record-scoped migrations that all apply to one record type (optionally narrowed further by filter).

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.