Better errors for indexing gettable/settable values #26098
Labels
Bug
A bug in TypeScript
Domain: Error Messages
The issue relates to error messaging
Fixed
A PR has been merged for this issue
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
Milestone
@sandersn found a case where, upon turning on
noImplicitAny
in Puppeteer, we issued the following error on aMap
:We should give a more specialized error message in cases where there is no index signature, but the value has a method
get
that takes astring
, or whenThe text was updated successfully, but these errors were encountered: