textShapeProps

See source code

Validation schema for text shape properties. This defines the runtime validation rules that ensure text shape data integrity when records are stored or transmitted.

textShapeProps: RecordProps<TLTextShape>;

Example

import { textShapeProps } from "@tldraw/tlschema";

// Validate text shape properties
const isValid = textShapeProps.richText.isValid(myRichText);
if (isValid) {
  // Properties are valid, safe to use
}
Prev
textShapeMigrations
Next
TL_CANVAS_UI_COLOR_TYPES