Skip to content

Commit a51a0e7

Browse files
committed
dep types: Clear out *.web.js.flow files, which we don't need
As suggested by Greg at zulip#5449 (comment)
1 parent 27c6742 commit a51a0e7

18 files changed

+5
-154
lines changed

tools/tsflower

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ run_only()
184184
# Also perhaps give TsFlower a way to tell it things to skip.
185185
rm -rf "${rootdir}"/types/"${package}"/lib/typescript/example/
186186
format_dir "${rootdir}"/types/"${package}"
187+
188+
# Remove all *.web.js.flow files. We don't use RN for the web.
189+
# TODO(tsflower): When tsflower supports skipping files, simplify away.
190+
rm -f "${rootdir}"/types/**/*.web.js.flow
187191
}
188192

189193
apply_patches()

types/expo-application/build/ExpoApplication.web.js.flow

Lines changed: 0 additions & 15 deletions
This file was deleted.

types/expo-modules-core/build/SyntheticPlatformEmitter.web.js.flow

Lines changed: 0 additions & 6 deletions
This file was deleted.

types/expo-modules-core/build/environment/browser.web.js.flow

Lines changed: 0 additions & 14 deletions
This file was deleted.

types/expo-screen-orientation/build/ExpoScreenOrientation.web.js.flow

Lines changed: 0 additions & 21 deletions
This file was deleted.

types/expo-web-browser/build/ExpoWebBrowser.web.js.flow

Lines changed: 0 additions & 28 deletions
This file was deleted.

types/patches/0032-upstream-expo-modules-core-Comment-suppress-an-unres.patch

Lines changed: 0 additions & 24 deletions
This file was deleted.

types/patches/0037-tsflower-expo-screen-orientation-Translate-TS-enums.patch renamed to types/patches/0036-tsflower-expo-screen-orientation-Translate-TS-enums.patch

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,10 @@ As we did for expo-application; see that recent patch for why we
77
can't just convert these to Flow enums. That'd be so satisfying, if
88
it worked.
99
---
10-
.../build/ExpoScreenOrientation.web.js.flow | 16 +-
1110
.../build/ScreenOrientation.js.flow | 12 +-
1211
.../build/ScreenOrientation.types.js.flow | 207 +++++++++---------
13-
3 files changed, 120 insertions(+), 115 deletions(-)
12+
2 files changed, 110 insertions(+), 109 deletions(-)
1413

15-
diff --git types/expo-screen-orientation/build/ExpoScreenOrientation.web.js.flow types/expo-screen-orientation/build/ExpoScreenOrientation.web.js.flow
16-
index 9c7d27be2..fb74c5373 100644
17-
--- types/expo-screen-orientation/build/ExpoScreenOrientation.web.js.flow
18-
+++ types/expo-screen-orientation/build/ExpoScreenOrientation.web.js.flow
19-
@@ -1,15 +1,19 @@
20-
/* @flow
21-
* @generated by TsFlower
22-
*/
23-
-import { Orientation, OrientationLock, WebOrientationLock } from './ScreenOrientation.types';
24-
+import type {
25-
+ OrientationT,
26-
+ OrientationLockT,
27-
+ WebOrientationLockT,
28-
+} from './ScreenOrientation.types';
29-
30-
declare var _default: {
31-
+name: string,
32-
- supportsOrientationLockAsync(orientationLock: OrientationLock): Promise<boolean>,
33-
- getPlatformOrientationLockAsync(): Promise<WebOrientationLock>,
34-
- getOrientationAsync(): Promise<Orientation>,
35-
- lockAsync(orientationLock: OrientationLock): Promise<void>,
36-
- lockPlatformAsync(webOrientationLock: WebOrientationLock): Promise<void>,
37-
+ supportsOrientationLockAsync(orientationLock: OrientationLockT): Promise<boolean>,
38-
+ getPlatformOrientationLockAsync(): Promise<WebOrientationLockT>,
39-
+ getOrientationAsync(): Promise<OrientationT>,
40-
+ lockAsync(orientationLock: OrientationLockT): Promise<void>,
41-
+ lockPlatformAsync(webOrientationLock: WebOrientationLockT): Promise<void>,
42-
unlockAsync(): Promise<void>,
43-
...
44-
};
4514
diff --git types/expo-screen-orientation/build/ScreenOrientation.js.flow types/expo-screen-orientation/build/ScreenOrientation.js.flow
4615
index a714391d8..487278d38 100644
4716
--- types/expo-screen-orientation/build/ScreenOrientation.js.flow

types/react-native-safe-area-context/lib/typescript/NativeSafeAreaProvider.web.js.flow

Lines changed: 0 additions & 8 deletions
This file was deleted.

types/react-native-safe-area-context/lib/typescript/SafeAreaView.web.js.flow

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)