---
title: defineShape
status: published
category: editor
group: Function
author: api
date: 06/23/2023
order: 24
---Public Function
##### Parameters
`type`
```ts
T['type']
```
`opts`
```ts
Omit, 'type'>
```
##### Returns
```ts
TLShapeInfo
```
##### References
[TLUnknownShape](/gen/tlschema/TLUnknownShape-type), [TLShapeInfo](/gen/editor/TLShapeInfo-type)