Typing the ToastProvider? #6695
Unanswered
NickWoodward
asked this question in
Q&A
Replies: 1 comment
-
Think I got it:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Are there any Typed examples of these components? Just struggling to get them working.
**Edit: Ahh, I think I just needed to make the
ToastState
type generic?**Edit2: It then complains about the state props of the ToastRegions:
Original question:
Just a bit sure how to type the children of the ToastProvider Component? Code here
This is as close as I got, but it's saying ToastState requires an argument:
Beta Was this translation helpful? Give feedback.
All reactions