@mocanvas/editor · constant

assetValidator

declare const assetValidator: Validator<Asset>

Any asset, dispatched on type.

This is what a store uses to check an asset record; reach for the per-type validators when you already know which one you have.

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.