# Swap

type in `@dioramajs/diorama/transitions`

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

Changes the DOM. May return a thenable that settles once the router is done.

```ts
type Swap = () => unknown
```

Also exported from `@dioramajs/transitions`.

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