-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
Description
Problem
There are a number of types defined using Map<K, V>
, but they are not actually instances of Map, which leads to type warnings such as:
Element implicitly has an 'any' type because type 'Map<string, Error[]>' has no index signature. Did you mean to call 'get' ?
Solution
As far as I can tell, these are all plain objects, so Map<K, V>
should be replaced with Record<K, V>