timolins / react-hot-toast

Smoking Hot React Notifications 🔥
https://react-hot-toast.com
MIT License
9.84k stars 331 forks source link

feat: add typings for toast custom props #155

Open maciekgrzybek opened 2 years ago

maciekgrzybek commented 2 years ago

Information

First of all, thanks for this great library :) I'm currently implementing it in our system, and I notice I have a need to pass custom props in the toast method, so I can use them when rendering toasts. This already seems to be working, but types aren't covering this situation so I added them in this PR. What do you think?

vercel[bot] commented 2 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/6L6R6CbmCkSLJqPX9ZqY3ofct2Hj
✅ Preview: https://react-hot-toast-git-fork-maciekgrzybek-feat-add-ty-56e9c1-timo1.vercel.app

maciekgrzybek commented 2 years ago

Hey @timolins any chance you could take a look at this? :)