@mocanvas/editor · function

createPropsMigrationSequences

declare function createPropsMigrationSequences(options: {
    shapeUtils?: readonly PropsMigrationSource[] | undefined;
    bindingUtils?: readonly PropsMigrationSource[] | undefined;
}): MigrationSequence[]

The store migration sequences for a set of shape and binding utils.

Utils with no static migrations contribute nothing; a util whose migrations is already a full MigrationSequence (it has a sequenceId) is passed through untouched, so a shape can still ship a hand-built sequence. Feed the result to createSchema().

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.