createShapeValidator

Public Function

Parameters
NameDescription

type

Type

props

T.Validator<Props>
Returns
T.ObjectValidator<{
  id: import('../records/TLShape').TLShapeId
  typeName: 'shape'
  x: number
  y: number
  rotation: number
  index: string
  parentId: TLParentId
  type: Type
  isLocked: boolean
  props: Props
}>
References

T.Validator, T.ObjectValidator, TLShapeId, TLParentId

Edit this page
Last edited on 11 May 2023
createShapeIdcreateTLSchema