@mocanvas/editor · function

object

declare function object<const Config extends Record<string, Validatable<unknown>>>(config: Config): ObjectValidator<ObjectValidatorType<Config>>

An object with a known set of properties. Unknown properties are rejected.

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.