You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently had a runtime bug where an object was refactored in a map, but at one spot it was still doing Object.keys(map) instead of changing it to map.keys().
TypeScript wasn't able to catch it, and wondering if I could solve it with some linting rule, other than just disabling any usage of Object.keys project wide. : S
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
We recently had a runtime bug where an object was refactored in a map, but at one spot it was still doing
Object.keys(map)
instead of changing it tomap.keys()
.TypeScript wasn't able to catch it, and wondering if I could solve it with some linting rule, other than just disabling any usage of
Object.keys
project wide. : SBeta Was this translation helpful? Give feedback.
All reactions