Open BenJenkinson opened 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/timo/react-hot-toast/4eFWeXm2C77BrtbHuRRkp7AeRYQ7
✅ Preview: https://react-hot-toast-git-fork-benjenkinson-dismiss-prom-089eca-timo1.vercel.app
toast.promise
options to better indicate that they can accept a function in the same way thattoast.success
and the other methods can.Example
This already works in plain JS, but now it also works in TypeScript.