Page MenuHomePhabricator

[Flow202][lib][skip-ci] [10/23] Fix Flow issues with untyped let declarations in entry-reducer
ClosedPublic

Authored by ashoat on Nov 4 2023, 12:01 PM.
Tags
None
Referenced Files
F3539685: D9702.id32706.diff
Thu, Dec 26, 3:10 AM
F3539678: D9702.id33798.diff
Thu, Dec 26, 3:10 AM
F3539563: D9702.diff
Thu, Dec 26, 2:52 AM
Unknown Object (File)
Mon, Dec 16, 12:50 AM
Unknown Object (File)
Thu, Dec 5, 5:47 PM
Unknown Object (File)
Wed, Dec 4, 8:48 AM
Unknown Object (File)
Mon, Dec 2, 8:22 AM
Unknown Object (File)
Nov 26 2024, 9:28 PM
Subscribers

Details

Summary

The new version of Flow wants annotations on let expressions that cover later assignments.

Normally this just means adding an annotation, but in this case it's complicated because updatedEntryInfos is first treated as mutable and later as immutable.

To address this, I separated that variable out into two, allowing them to be typed differently.

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 D9701

Test Plan

Confirm the Flow errors go away

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 4 2023, 12:21 PM
Harbormaster failed remote builds in B23744: Diff 32706!
This revision is now accepted and ready to land.Nov 5 2023, 10:48 AM
ashoat retitled this revision from [Flow202][lib] [10/23] Fix Flow issues with untyped let declarations in entry-reducer to [Flow202][lib][skip-ci] [10/23] Fix Flow issues with untyped let declarations in entry-reducer.Nov 19 2023, 11:47 AM
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.