Closed
Description
@sandersn found a case where, upon turning on noImplicitAny
in Puppeteer, we issued the following error on a Map
:
Element implicitly has an 'any' type because type 'Map<string, Function>' has no index signature.
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 a string
, or when
Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?