Suggestion: Add signature for Object.keys() to remove "element implicitly has an 'any'" error #13989
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
When using
noImplicitAny
the following code:Results with the following error:
There are ways to avoid it:
suppressImplicitAnyIndexErrors
p2
andp1
toany
noImplicitAny
There's another option:
That can be supported by adding a signature for
Object.keys
in thelib.d.ts
:Then the original code would work without the need for
suppressImplicitAnyIndexErrors
.The text was updated successfully, but these errors were encountered: