Page MenuHomePhabricator

[native][web] Cast InputState / BaseInputState when returning from selectors
ClosedPublic

Authored by ashoat on Dec 4 2023, 1:14 PM.
Tags
None
Referenced Files
F3383498: D10168.diff
Thu, Nov 28, 4:07 PM
Unknown Object (File)
Mon, Nov 25, 2:49 AM
Unknown Object (File)
Mon, Nov 25, 2:33 AM
Unknown Object (File)
Mon, Nov 25, 2:21 AM
Unknown Object (File)
Tue, Nov 19, 11:47 PM
Unknown Object (File)
Fri, Nov 8, 4:01 PM
Unknown Object (File)
Thu, Nov 7, 6:00 PM
Unknown Object (File)
Oct 16 2024, 5:54 PM
Subscribers

Details

Summary

While working on the unused-promise Flow lint (in particular, D10162) I noticed that Flow was failing to typecheck the return value of these selectors.

Adding this cast fixed the issue, and things appear to be typechecked correctly now.

(@atul, this was the change that previously caused minimallyEncoded type errors for me, but no longer does after rebasing.)

Depends on D10167

Test Plan

Flow

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.Dec 4 2023, 1:39 PM
Harbormaster failed remote builds in B24747: Diff 34210!
ashoat published this revision for review.Dec 4 2023, 6:26 PM

Not sure what's going on with CI

This revision is now accepted and ready to land.Dec 5 2023, 7:41 AM