Why can't 'value' be correctly inferred? #3270
Unanswered
alvarezdct
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a function whose structure is the following:
Here is the error:
I am omitting 'value' from ListboxProps, and then passing an assignment to the < Listbox /> value prop via the 'options' argument. I thought Typescript should be able to assign the correct type automatically but it doesn't. Could anyone answer as to why this happens?
Beta Was this translation helpful? Give feedback.
All reactions