@mocanvas/store · interface

StoreError

interface StoreError

A record that failed validation, with enough context to say what was being done to it at the time.

Thrown rather than returned: a store that keeps going after writing an invalid record is a store whose next save produces a file nothing can load.


Properties · 5

error: Error
isExistingValidationIssue: boolean
phase: "initialize" | "createRecord" | "updateRecord" | "tests"
recordAfter: unknown
recordBefore?: unknown

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.