lineShapeProps

See source code

Validation schema for line shape properties. Defines the runtime validation rules for all properties of line shapes, ensuring data integrity and type safety.

lineShapeProps: RecordProps<TLLineShape>

Example

import { lineShapeProps } from '@tldraw/tlschema'

// Used internally by the validation system
const validator = T.object(lineShapeProps)
const validatedProps = validator.validate(someLineProps)
Prev
lineShapeMigrations
Next
LineShapeSplineStyle