noteShapeProps

See source code

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

noteShapeProps: RecordProps<TLNoteShape>

Example

import { noteShapeProps } from '@tldraw/tlschema'

// Used internally by the validation system
const validator = T.object(noteShapeProps)
const validatedProps = validator.validate(someNoteProps)
Prev
noteShapeMigrations
Next
opacityValidator