--- title: createShapeValidator status: published category: tlschema group: Function author: api date: 06/23/2023 order: 13 ---Public Function ##### Parameters `type` ```ts Type ``` `props` (optional) ```ts { [K in keyof Props]: T.Validatable } ``` ##### Returns ```ts 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 }> ``` ##### References [TLShapeId](/gen/tlschema/TLShapeId-type), [TLParentId](/gen/tlschema/TLParentId-type)