ToastOf<Payload, Discriminator>
Defined in: types/toast/toast.types.ts:82
Represents a typed toast notification with a strongly-typed payload. Extends BaseToast and allows specifying both the payload type and a discriminating key to categorize the toast.
Since
1.2.1
Author
Simon Kovtyk
Extends
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
Payload | - | The type of the payload associated with the toast. |
Discriminator extends keyof Payload | keyof Payload | The key of "Payload" that determines the toast kind. Defaults to all keys of "Payload". |
Properties
| Property | Type | Inherited from | Defined in |
|---|---|---|---|
id? | string | - | types/toast/toast.types.ts:83 |
isSticky? | boolean | BaseToast.isSticky | types/toast/toast.types.ts:43 |
kind | Discriminator | - | types/toast/toast.types.ts:84 |
payload | Payload | - | types/toast/toast.types.ts:85 |
status? | StatusType | BaseToast.status | types/toast/toast.types.ts:44 |
ttl? | number | BaseToast.ttl | types/toast/toast.types.ts:42 |