# PageScope

interface in `@dioramajs/diorama/transitions`

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

The current page: a scope closed when the next page replaces it.

```ts
interface PageScope
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `signal` | `AbortSignal` | Aborted when the page closes. |
| `url` | `string` | URL of the page. |
| `onDispose` | `onDispose(cleanup: Cleanup): Off` | Runs when the next page replaces this one. Accepts app.attach handles as is. |

Also exported from `@dioramajs/transitions`.

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