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