@mocanvas/store · type

SerializedSchema

type SerializedSchema = SerializedSchemaV1 | SerializedSchemaV2

A persisted schema, in either format mocanvas can read.

Only SerializedSchemaV2 is ever *written* — see StoreSchema.serialize. The v1 arm is here so a document saved by an older, pre-sequence writer is still loadable rather than being rejected as "unsupported schema version".

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.