-
-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript: error when using multiple fallback key and at least one key is valid #2183
Comments
This is the expected behaviour: all keys are type checked. If you need to provide a fallback use |
Thanks. I tried this way early on but i was using the key as a defaultValue and it was not working, but you made me realize that i can do
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
Maybe there is something i'm doing wrong or i don't understand correctly but i was expecting typescript to not give an error when there is at least one valid key that it can fallback to.
To Reproduce
Expected behavior
There is no typescript error when there is at least 1 valid key
Your Environment
The text was updated successfully, but these errors were encountered: