Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dep types: Clear out *.web.js.flow files, which we don't need #5478

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tools/tsflower
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ run_only()
# Also perhaps give TsFlower a way to tell it things to skip.
rm -rf "${rootdir}"/types/"${package}"/lib/typescript/example/
format_dir "${rootdir}"/types/"${package}"

# Remove all *.web.js.flow files. We don't use RN for the web.
# TODO(tsflower): When tsflower supports skipping files, simplify away.
rm -f "${rootdir}"/types/**/*.web.js.flow
}

apply_patches()
Expand Down
15 changes: 0 additions & 15 deletions types/expo-application/build/ExpoApplication.web.js.flow

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions types/expo-modules-core/build/environment/browser.web.js.flow

This file was deleted.

This file was deleted.

28 changes: 0 additions & 28 deletions types/expo-web-browser/build/ExpoWebBrowser.web.js.flow

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,10 @@ As we did for expo-application; see that recent patch for why we
can't just convert these to Flow enums. That'd be so satisfying, if
it worked.
---
.../build/ExpoScreenOrientation.web.js.flow | 16 +-
.../build/ScreenOrientation.js.flow | 12 +-
.../build/ScreenOrientation.types.js.flow | 207 +++++++++---------
3 files changed, 120 insertions(+), 115 deletions(-)
2 files changed, 110 insertions(+), 109 deletions(-)

diff --git types/expo-screen-orientation/build/ExpoScreenOrientation.web.js.flow types/expo-screen-orientation/build/ExpoScreenOrientation.web.js.flow
index 9c7d27be2..fb74c5373 100644
--- types/expo-screen-orientation/build/ExpoScreenOrientation.web.js.flow
+++ types/expo-screen-orientation/build/ExpoScreenOrientation.web.js.flow
@@ -1,15 +1,19 @@
/* @flow
* @generated by TsFlower
*/
-import { Orientation, OrientationLock, WebOrientationLock } from './ScreenOrientation.types';
+import type {
+ OrientationT,
+ OrientationLockT,
+ WebOrientationLockT,
+} from './ScreenOrientation.types';

declare var _default: {
+name: string,
- supportsOrientationLockAsync(orientationLock: OrientationLock): Promise<boolean>,
- getPlatformOrientationLockAsync(): Promise<WebOrientationLock>,
- getOrientationAsync(): Promise<Orientation>,
- lockAsync(orientationLock: OrientationLock): Promise<void>,
- lockPlatformAsync(webOrientationLock: WebOrientationLock): Promise<void>,
+ supportsOrientationLockAsync(orientationLock: OrientationLockT): Promise<boolean>,
+ getPlatformOrientationLockAsync(): Promise<WebOrientationLockT>,
+ getOrientationAsync(): Promise<OrientationT>,
+ lockAsync(orientationLock: OrientationLockT): Promise<void>,
+ lockPlatformAsync(webOrientationLock: WebOrientationLockT): Promise<void>,
unlockAsync(): Promise<void>,
...
};
diff --git types/expo-screen-orientation/build/ScreenOrientation.js.flow types/expo-screen-orientation/build/ScreenOrientation.js.flow
index a714391d8..487278d38 100644
--- types/expo-screen-orientation/build/ScreenOrientation.js.flow
Expand Down

This file was deleted.

This file was deleted.