-
-
Notifications
You must be signed in to change notification settings - Fork 640
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: Use TsFlower for expo-application and expo-screen-orientation #5447
Conversation
This would have interfered with types/expo-*/build/, which we'll add soon using tools/tsflower.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @chrisbobbe! This looks good -- small comments below.
package=expo-screen-orientation | ||
run_on_package "${package}" | ||
format_dir "${rootdir}"/types/"${package}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's still a file flow-typed/expo-screen-orientation_vx.x.x.js
, so we should delete that.
+declare export var ApplicationReleaseType: {| | ||
+ +UNKNOWN: 0, | ||
+ +SIMULATOR: 1, | ||
+ +ENTERPRISE: 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to mention that this doesn't describe all the quirky behavior of these TS enums (namely that it maps values to names as well as names to values.)
Oh also: the references to |
448082f
to
cfa0fdf
Compare
Thanks for the review! Revision pushed. I removed the |
Thanks! Looks good; merging. |
Thanks for the review! |
Yeah, that's ultimately due to this bit: # Intersect $files with the set of our JS files in src/.
#
# Prints a list of newline-terminated paths; either files, or
# directories meaning their whole subtrees.
files_js() {
local file_pattern='^src/.*\.js$' If we want to lint the type definitions, that could be accomplished by changing the lint)
run_lint $(files_js)
;;
jest)
run_jest
;;
prettier)
run_prettier $(files_js_jsflow)
;; as I'm not sure we do want lint on the type definitions, though, or at least the generated ones. When I open one of the longer files in |
I'd like to do this on the way to #5441, upgrading to Expo SDK 44.