@mocanvas/editor · interface

Validatable

interface Validatable<T>

Anything that can check a value and narrow its type: a Validator, a StyleProp, ...


Methods · 2

isValid(value: unknown): boolean
validate(value: unknown): T

Mentioned here

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.