@mocanvas/editor · interface
interface SchemaPropsInfoThe props-and-migrations pair a schema needs for one shape, binding or asset type.
A ShapeUtil subclass satisfies this structurally through its static props
and static migrations, so createTLSchema({ shapes: { geo: GeoShapeUtil } })
type-checks without the util having to declare anything extra.
Properties · 2
readonly migrations?: PropsMigrations | MigrationSequence | undefinedHow the props have changed over time: either a props migration sequence
(the usual case) or a full store MigrationSequence for a type that needs
to touch more than its own props.
readonly props?: UnknownRecordProps | undefinedOne validator per prop; the same map a util declares as static props.
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.