2 Matching Annotations
- Nov 2021
-
-
Even if it's const, an object can still have properties added later returning any arbitrary type. Indexing into the object would then have to return any - and that's an implicit any.
-
we have no way to know that the line nameMap[3] = "bob"; isn't somewhere in your program
-