@mocanvas/editor · function

toCustomRecordMigrationSequence

declare function toCustomRecordMigrationSequence(type: string, migrations: PropsMigrations): MigrationSequence

Turn a custom record type's props migrations into the record-scoped MigrationSequence the store applies.

Each step is narrowed to records with the right typeName *and* type, and only ever touches their props — so a migration for review cannot reach a checklist record that happens to be in the same document.

Mentioned here

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.