---
title: defineShape
status: published
category: editor
group: Function
author: api
date: 06/23/2023
order: 24
---<Small>Public Function</Small>




##### Parameters


<ParametersTable>

<ParametersTableRow>
<ParametersTableName>

`type`

</ParametersTableName>
<ParametersTableDescription>

```ts
T['type']
```



</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>

`opts`

</ParametersTableName>
<ParametersTableDescription>

```ts
Omit<TLShapeInfo<T>, 'type'>
```



</ParametersTableDescription>
</ParametersTableRow>
</ParametersTable>

##### Returns


```ts
TLShapeInfo<T>
```

##### References

[TLUnknownShape](/gen/tlschema/TLUnknownShape-type), [TLShapeInfo](/gen/editor/TLShapeInfo-type)

