timolins / react-hot-toast

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

chore: export Message and ToastHandler types #307

Open willdavidow opened 1 year ago

willdavidow commented 1 year ago

I'm creating some custom functionality in my application that wraps functionality react-hot-toast into some custom messaging and ran into an issue with Typescript. I had to recreate the Message and/or ToastHandler Types that already exist in the library

Exporting those two types along with library helped me, and figured it might be a nice future-fix for anyone else running into the same issue.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-hot-toast ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2023 2:51pm