Home > @uniformdev/design-system > ToastPromiseOptions

ToastPromiseOptions type

Promise-toast options accepted by toast.promise. Each handler may be a static description string or a function that receives the resolved value / rejection error and returns a description. All three keys are optional to mirror react-toastify's behaviour where any unset state simply rendered an empty toast (or none at all when the promise settled fast enough).

Signature: