Page MenuHomePhabricator

[Flow202][native][skip-ci] [56/x] Use Flow's comment syntax in Reanimated worklets
ClosedPublic

Authored by ashoat on Nov 27 2023, 1:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 6:43 PM
Unknown Object (File)
Fri, Nov 8, 1:03 AM
Unknown Object (File)
Wed, Nov 6, 6:41 AM
Unknown Object (File)
Oct 17 2024, 10:41 AM
Unknown Object (File)
Oct 17 2024, 10:41 AM
Unknown Object (File)
Oct 17 2024, 10:41 AM
Unknown Object (File)
Oct 17 2024, 10:41 AM
Unknown Object (File)
Oct 17 2024, 10:41 AM
Subscribers
None

Details

Summary

Background here. The new Flow wants types for these functions, but Reanimated's bundler fails to strip them. To get around it, I'm using Flow's comment syntax.

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 D10039

Test Plan

Confirm the Flow errors go away

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 24552
Build 211049: arc lint + arc unit

Event Timeline

ashoat created this revision.
This revision is now accepted and ready to land.Nov 27 2023, 7:22 AM

Use Flow's comment syntax: https://flow.org/en/docs/types/comments/

Best of both worlds: keeps the types and doesn't break Reanimated

ashoat retitled this revision from [Flow202][native][skip-ci] [56/x] Add $FlowFixMe to silence errors in Reanimated worklets to [Flow202][native][skip-ci] [56/x] Add Flow's comment syntax in Reanimated worklets.Nov 27 2023, 2:54 PM
ashoat edited the summary of this revision. (Show Details)
ashoat retitled this revision from [Flow202][native][skip-ci] [56/x] Add Flow's comment syntax in Reanimated worklets to [Flow202][native][skip-ci] [56/x] Use Flow's comment syntax in Reanimated worklets.