@mocanvas/editor · interface

PropsMigration

interface PropsMigration

One step of a props migration sequence.


Properties · 3

readonly down?: ((props: MigratableProps) => void | MigratableProps) | undefined

Undo up. Without it, older clients cannot read newer data.

readonly id: MigrationId
readonly up: (props: MigratableProps) => void | MigratableProps

Bring props up to this version. Mutate in place, or return a replacement.

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.