Page MenuHomePhabricator

[Flow202][lib][skip-ci] [20/23] Get rid of $FlowFixMes in lib/utils/objects.js
ClosedPublic

Authored by ashoat on Nov 4 2023, 12:06 PM.
Tags
None
Referenced Files
F3179902: D9712.id32716.diff
Fri, Nov 8, 3:46 AM
Unknown Object (File)
Sun, Oct 27, 10:18 PM
Unknown Object (File)
Sun, Oct 27, 10:18 PM
Unknown Object (File)
Sun, Oct 27, 10:02 PM
Unknown Object (File)
Sep 29 2024, 2:44 AM
Unknown Object (File)
Sep 29 2024, 2:11 AM
Unknown Object (File)
Sep 6 2024, 5:36 PM
Unknown Object (File)
Sep 6 2024, 5:36 PM
Subscribers

Details

Summary

The types of Object.values and Object.keys are fixed in the new version of Flow, so we don't need these $FlowFixMes anymore.

I made two other small changes:

  1. Fixed a Flow error due to the return type of assertObjectsAreEqual not being typed.
  2. Got rid of the keys utility, which was just an alias to Object.keys and was causing some sort of type error.
NOTE: CI will fail on this diff. I considered the possibility of fixing Flow errors BEFORE upgrading Flow, but it wasn't possible... in some cases, the fixes to support the new version of Flow caused errors in the old version. I could have hidden these type errors with $FlowFixMe lines and then later revert those, but that seemed like too much busy work.

Depends on D9711

Test Plan

Confirm the Flow errors go away

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 4 2023, 12:38 PM
Harbormaster failed remote builds in B23754: Diff 32716!
This revision is now accepted and ready to land.Nov 5 2023, 11:33 AM
ashoat retitled this revision from [Flow202][lib] [20/23] Get rid of $FlowFixMes in lib/utils/objects.js to [Flow202][lib][skip-ci] [20/23] Get rid of $FlowFixMes in lib/utils/objects.js.Nov 19 2023, 4:54 PM
This revision was landed with ongoing or failed builds.Nov 27 2023, 3:25 PM
This revision was automatically updated to reflect the committed changes.