Should I use Sender<...>
to type send
?
#1510
Answered
by
Andarist
RafalFilipek
asked this question in
Q&A
-
Hi!
Should I use Quick example: https://codesandbox.io/s/competent-northcutt-w1fe7?file=/src/App.tsx This example works just fine with Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
Andarist
Oct 1, 2020
Replies: 1 comment 2 replies
-
Send is just a simple function that takes a single argument - if u need to create a compatible type somewhere where u cant rely in inference then I would suggest using exactly that: a simple function type |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
RafalFilipek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Send is just a simple function that takes a single argument - if u need to create a compatible type somewhere where u cant rely in inference then I would suggest using exactly that: a simple function type