@mocanvas/editor · type

RecordPropValidator

type RecordPropValidator<T> = Validatable<T> | StyleProp<T>

One entry of a static props map: a validator, or a StyleProp — which validates too, and additionally makes the prop shared across shapes.

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.