# MailTemplateVariable

The MailTemplateVariable type of the TypeScript SDK, part of MailTemplateRender.

```ts
type MailTemplateVariable = {
  bodies: ('subject' | 'text' | 'html')[]
  description: string | null
  filledFromSample: boolean
  name: string
  sample: string | number | boolean | null
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `bodies` | `('subject' \| 'text' \| 'html')[]` | Which fields reference it |
| `description` | `string` \| `null` |  |
| `filledFromSample` | `boolean` | True when the preview's sample stood in for a value not passed |
| `name` | `string` |  |
| `sample` | `string` \| `number` \| `boolean` \| `null` |  |

## Used in

[`MailTemplateRender`](/docs/sdks/typescript/types/mail-template-render).
