imageShapeProps

See source code

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

imageShapeProps: RecordProps<TLImageShape>

Example

import { imageShapeProps } from '@tldraw/tlschema'

// Used internally by the validation system
const validator = T.object(imageShapeProps)
const validatedProps = validator.validate(someImageProps)
Prev
imageShapeMigrations
Next
InstancePageStateRecordType