@mocanvas/editor · type

ShapePropsForType

type ShapePropsForType<Type extends string> = Type extends keyof TLGlobalShapePropsMap ? TLGlobalShapePropsMap[Type] extends object ? TLGlobalShapePropsMap[Type] : object : object

The props of shape type Type, or the open object when that type has not been registered through TLGlobalShapePropsMap.

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.