API reference: @salmonui/notifications/toast
ToastQueueOptionsinterface
import type { ToastQueueOptions } from '@salmonui/notifications/toast';interface ToastQueueOptions {
max?: number | undefined;
now?: (() => number) | undefined;
setTimeout?: ((callback: () => void, ms: number) => unknown) | undefined;
clearTimeout?: ((handle: unknown) => void) | undefined;
}
| Name | Signature | Description |
|---|---|---|
maxoptional | max?: number | undefined; | Visible toasts; the rest wait. Default 5. |
nowoptional | now?: (() => number) | undefined; | Clock for tests. Default |
setTimeoutoptional | setTimeout?: ((callback: () => void, ms: number) => unknown) | undefined; | Timer for tests. Default |
clearTimeoutoptional | clearTimeout?: ((handle: unknown) => void) | undefined; | Timer for tests. Default |