@mocanvas/editor · type

StylePropValue

type StylePropValue<Prop extends StyleProp<any>> = Prop extends StyleProp<infer T> ? T : never

The value a StyleProp carries.

StylePropValue<typeof DefaultColorStyle> is the colour union, which is how a shape's props type stays in step with the style it is declared from.

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.