@mocanvas/store · interface

RecordMigration

interface RecordMigration

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 5

readonly down?: ((record: UnknownRecord) => void | UnknownRecord) | undefined
readonly filter?: ((record: UnknownRecord) => boolean) | undefined

Only records for which this returns true are migrated. Defaults to all records.

readonly id: MigrationId
readonly scope: "record"
readonly up: (record: UnknownRecord) => void | UnknownRecord

Mutate the record 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.