# MessageRestoreResult

The MessageRestoreResult type of the TypeScript SDK, which messages.restore take or answer.

```ts
type MessageRestoreResult = {
  message: MessageMeta
  restored: boolean
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `message` | [`MessageMeta`](/docs/sdks/typescript/types/message-meta) | Restored message metadata |
| `restored` | `boolean` | True if message was restored from trash |

## Used by

| Method | What it does |
| --- | --- |
| [`messages.restore`](/docs/sdks/typescript/messages/restore) | Restore an expunged message from trash |
