@mocanvas/editor · function

createSchema

declare function createSchema(migrationsOrUtils?: MigrationSequence[] | Pick<CreateStoreOptions, "shapeUtils" | "bindingUtils" | "records" | "migrations">): StoreSchema<EditorRecord, EditorStoreProps>

Build the editor's schema.

Accepts either a bare migration list or the util lists to derive one from — createSchema({ shapeUtils, bindingUtils }) is the form that picks up every util's static migrations.

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.