@mocanvas/editor · constant

AssetRecordType

declare const AssetRecordType: _mocanvas_store.RecordType<Asset, "props" | "type">

Per-type validation lives in ../assets/assetValidators — imageAssetValidator, videoAssetValidator and bookmarkAssetValidator, plus the assetValidator union over the three. It is deliberately not attached here yet: turning it on would start rejecting asset records inside parseTldrFile, and documents written by older editors have not been checked against it.

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.