UntypedToast
Defined in: types/toast/toast.types.ts:66
Represents a toast notification with a flexible payload and custom type. Extends BaseToast with additional properties for identification and custom data.
Example
ts
const toast: UntypedToast = {
id: "123",
kind: "customNotification",
payload: { message: "Hello, world!" },
ttl: 3000,
isSticky: false,
status: STATUS_TYPES.NEUTRAL
};Since
1.2.1
Author
Simon Kovtyk
Extends
Properties
| Property | Type | Inherited from | Defined in |
|---|---|---|---|
id? | string | - | types/toast/toast.types.ts:67 |
isSticky? | boolean | BaseToast.isSticky | types/toast/toast.types.ts:43 |
kind | string | - | types/toast/toast.types.ts:68 |
payload? | unknown | - | types/toast/toast.types.ts:69 |
status? | StatusType | BaseToast.status | types/toast/toast.types.ts:44 |
ttl? | number | BaseToast.ttl | types/toast/toast.types.ts:42 |