# ToastQueueOptions (@salmonui/notifications/toast)

> The ToastQueueOptions interface of @salmonui/notifications/toast.

Canonical: https://salmonui.dev/docs/reference/notifications/toast/ToastQueueOptions

```ts
import type { ToastQueueOptions } from '@salmonui/notifications/toast';
```

Entry index: https://salmonui.dev/docs/reference/notifications/toast (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/notifications/toast.md).

## Reference

Kind: interface

```ts
interface ToastQueueOptions {
    max?: number | undefined;
    now?: (() => number) | undefined;
    setTimeout?: ((callback: () => void, ms: number) => unknown) | undefined;
    clearTimeout?: ((handle: unknown) => void) | undefined;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `max` | `max?: number \| undefined;` | optional | Visible toasts; the rest wait. Default 5. |
| `now` | `now?: (() => number) \| undefined;` | optional | Clock for tests. Default `Date.now`. |
| `setTimeout` | `setTimeout?: ((callback: () => void, ms: number) => unknown) \| undefined;` | optional | Timer for tests. Default `globalThis.setTimeout`. |
| `clearTimeout` | `clearTimeout?: ((handle: unknown) => void) \| undefined;` | optional | Timer for tests. Default `globalThis.clearTimeout`. |
