# TransitionResult

interface in `@dioramajs/diorama/transitions`

```ts
import type { TransitionResult } from '@dioramajs/diorama/transitions'
```

How a transition ended.

```ts
interface TransitionResult
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `error?` | `unknown` | The swap error, for `failed`. |
| `flights` | `number` | Number of flights that landed. |
| `status` | `'failed' \| 'skipped' \| 'done' \| 'superseded' \| 'aborted'` | How it ended. `superseded` means a newer transition took over. |

Also exported from `@dioramajs/transitions`.

Defined in [packages/transitions/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/transitions/src/types.ts#L102).
