ToastRendererDef<PayloadType, Key>
Defined in: types/toast/toast-config.types.ts:15
Describes how a toast should be rendered by providing a component, a type identifier, and an optional mapping function for transforming the toast payload into component inputs.
Since
1.2.1
Author
Simon Kovtyk
Type Parameters
| Type Parameter | Description |
|---|---|
PayloadType | The data passed when creating a toast. |
Key | A unique identifier used to distinguish toast kinds. |
Properties
| Property | Type | Defined in |
|---|---|---|
component | unknown | types/toast/toast-config.types.ts:16 |
kind | Key | types/toast/toast-config.types.ts:17 |
Methods
mapInputs()?
ts
optional mapInputs(payload): Record<string, unknown>;Defined in: types/toast/toast-config.types.ts:18
Parameters
| Parameter | Type |
|---|---|
payload | PayloadType |
Returns
Record<string, unknown>