@mocanvas/mocanvas · type

LoadMocanvasFileResult

type LoadMocanvasFileResult = ParseTldrFileResult & {
    warnings: string[];
}

The parse result plus whatever the load could not read cleanly.

warnings is always present (empty when the file needed nothing unusual) and is worth surfacing: it names shapes whose props were repaired, segments that had to be dropped, and shape types with no registered util.

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.