https://linear.app/comm/issue/ENG-10205/update-flow-to-02691
There are no types available in flow-typed for those libraries and adding types for them would take time, so I created stubs automatically.
Depends on D15044
Differential D15045 Authored by angelika on Jul 22 2025, 10:13 PM.
Details
Summary https://linear.app/comm/issue/ENG-10205/update-flow-to-02691 There are no types available in flow-typed for those libraries and adding types for them would take time, so I created stubs automatically. Depends on D15044 Test Plan Flow
Diff Detail
Event Timelineangelika held this revision as a draft. Herald added subscribers: tomek, ashoat. · View Herald TranscriptJul 22 2025, 10:13 PM2025-07-22 22:13:45 (UTC+0) Harbormaster completed remote builds in B34699: Diff 48903.Jul 22 2025, 10:16 PM2025-07-22 22:16:29 (UTC+0) angelika added a child revision: D15046: [Flow262][skip-ci] Fix React refs.Jul 22 2025, 10:24 PM2025-07-22 22:24:14 (UTC+0) Harbormaster completed remote builds in B34890: Diff 49097.Jul 24 2025, 4:25 PM2025-07-24 16:25:11 (UTC+0) Comment Actions How were we able to use these in the past? Why are the type definitions required now? This revision is now accepted and ready to land.Jul 31 2025, 10:36 AM2025-07-31 10:36:49 (UTC+0) Comment Actions
It's actually due to expo libraries upgrade. Let's see for example for expo-haptics. It breaks between versions 13.0.1 and 14.0.0. And between those versions there was this commit: https://github.com/expo/expo/commit/0f999166f4bc882b5d1c08474dcf0d6a9750bffd "main": "build/Haptics.js", -> "main": "src/Haptics.ts", and build/Haptics.js is deleted. Now there are only ts files in src and build folders and probably flow has an issue with this. Comment Actions Do we have a plan for typing the surface of the libraries that we're using? Did you check if Flow-Typed contains definitions for them? This revision now requires changes to proceed.Aug 4 2025, 2:01 PM2025-08-04 14:01:35 (UTC+0) Comment Actions
I can create a follow up issue. I also mentioned in the diff description that:
Comment Actions
Great, please do that.
Ok, this looks right. I can see that e.g. expo-file-system has some definitions, but they are for versions 4-6, and we're on 15 (on the master). Not sure how much the API has changed, but we can consider checking that and maybe use it as an inspiration. This revision is now accepted and ready to land.Aug 5 2025, 9:12 AM2025-08-05 09:12:33 (UTC+0) Comment Actions Created a follow up task here: https://linear.app/comm/issue/ENG-11059/add-flow-types-for-expo-libraries Harbormaster completed remote builds in B35157: Diff 49408.Aug 9 2025, 12:25 PM2025-08-09 12:25:39 (UTC+0) Harbormaster completed remote builds in B35423: Diff 49712.Aug 21 2025, 12:50 PM2025-08-21 12:50:48 (UTC+0) Closed by commit rCOMM77cc63acd7f2: [Flow262][skip-ci] Add expo libraries types stubs. · Explain WhyAug 21 2025, 7:33 PM2025-08-21 19:33:02 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 49408 |