createShapeValidator

Public Function

Parameters
NameDescription

type

Type

props

(optional)

{
  [K in keyof Props]: T.Validatable<Props[K]>
}
Returns
T.ObjectValidator<{
  id: TLShapeId
  typeName: 'shape'
  x: number
  y: number
  rotation: number
  index: string
  parentId: TLParentId
  type: Type
  isLocked: boolean
  opacity: number
  props: Props | Record<string, unknown>
}>
References

T.Validatable, T.ObjectValidator, TLShapeId, TLParentId, Record

Edit this page
Last edited on 12 June 2023
createShapeIdcreateTLSchema