@mocanvas/editor · function

createBaseAssetValidator

declare function createBaseAssetValidator(): Validator<BaseAsset<string, object>>

The fields every asset has whatever its type — everything but props.

For an asset type this build has no prop map for. See createBaseShapeValidator: forward compatibility is about props, and an id that is not an asset: id is corruption in any generation.

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.