-
Notifications
You must be signed in to change notification settings - Fork 12.8k
fix #33427 #33486
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
fix #33427 #33486
Conversation
It looks like you've sent a pull request to update our 'lib' files. These files aren't meant to be edited by hand, as they consist of last-known good states of the compiler and are generated from 'src'. Unless this is necessary, consider closing the pull request and sending a separate PR to update 'src'. |
@typescript-bot |
I don't speak for the typescript staff, but I still think the error is too vague. |
I think two messages mean: either string | number -> you need to How about thought of others? |
Thoughts @fatcerberus? |
I agree with @sploders101 that the addition of "either" does next to nothing to improve clarity compared to the current message. My preference was always for the message that was suggested under Expected Behavior in #33427:
"Mapped object type" can be replaced with whatever is the name of the construct |
@fatcerberus
|
Fixes #33427