> ## Documentation Index
> Fetch the complete documentation index at: https://bazable.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# bazable types

> Generate TypeScript type definitions from your Bazable contract.

Generates TypeScript interfaces from the stored response schemas in your contract.

## Usage

```bash theme={null}
bazable types [options]
```

## Options

<ParamField query="-o, --output" default="cwd" type="string">
  Output directory.
</ParamField>

<ParamField query="--stdout" type="boolean">
  Print to the terminal instead of writing a file.
</ParamField>

<ParamField query="--prefix" type="string">
  Prefix for generated interface names.
</ParamField>

<ParamField query="--name" type="string">
  Override the interface name (only for a single schema).
</ParamField>

## Example

```bash theme={null}
bazable types -o ./src/types
```

<Tip>
  Pair with [`bazable client`](/commands/client) to get typed request functions alongside typed response models.
</Tip>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.