@mocanvas/editor · function
declare function model<T extends {
readonly [key: string]: unknown;
}>(name: string, validator: Validatable<T>): Validator<T>Name a validator so its failures read At <name>(...): ... instead of bare.
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.