-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
refactor: mv translateArrayTypeAnnotation
(Flow,TS) fns > parsers-primitives.js
#35479
refactor: mv translateArrayTypeAnnotation
(Flow,TS) fns > parsers-primitives.js
#35479
Conversation
0ecafa6
to
89ee2b0
Compare
Base commit: 1b99473 |
This comment was marked as outdated.
This comment was marked as outdated.
89ee2b0
to
5d11c89
Compare
This comment was marked as outdated.
This comment was marked as outdated.
90421d5
to
1301a1e
Compare
PR build artifact for 1301a1e is ready. |
PR build artifact for 1301a1e is ready. |
@GijsWeterings has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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.
Hi @Pranav-yadav, thank you for taking care of this.
I left a comment to simplify the code further. Let me know what do you think.
packages/react-native-codegen/src/parsers/parsers-primitives.js
Outdated
Show resolved
Hide resolved
….js` - combined `Flow` and `TS` `translateArrayTypeAnnotation` fn 's into common fn - moved it to `parsers-primitives.js` - re-organized imports and exports :)
1301a1e
to
28177b8
Compare
@cipolleschi Tests are passing. Though, a general Qn for you; Tests
|
Base commit: dccb57f |
PR build artifact for 28177b8 is ready. |
PR build artifact for 28177b8 is ready. |
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.
Uhm... It looks like that yarn lint
is working, but it does not accept the import type
syntax The CI jobs are green, so I guess that it is ok.
How are you invoking it?
@GijsWeterings has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was successfully merged by @Pranav-yadav in 5a20bd5. When will my fix make it into a release? | Upcoming Releases |
…primitives.js` (facebook#35479) Summary: This PR is a subtask of facebook#34872 Moved `translateArrayTypeAnnotation` (Flow,TS) fns to `parsers-primitives.js` - combined `Flow` and `TS` `translateArrayTypeAnnotation` fn 's into common fn - moved it to `parsers-primitives.js` - re-organized imports and exports :) ## Changelog [Internal] [Changed] - Moved `translateArrayTypeAnnotation` (Flow,TS) fns to `parsers-primitives.js` Pull Request resolved: facebook#35479 Test Plan: - ensure 👇 is `#00ff00` `yarn lint && yarn flow && yarn test-ci` Reviewed By: cipolleschi Differential Revision: D41548046 Pulled By: GijsWeterings fbshipit-source-id: 8fd7214f8b1e669ba42f326f814674eec179fed5
Summary
This PR is a subtask of #34872
Moved
translateArrayTypeAnnotation
(Flow,TS) fns toparsers-primitives.js
Flow
andTS
translateArrayTypeAnnotation
fn 's into common fnparsers-primitives.js
Changelog
[Internal] [Changed] - Moved
translateArrayTypeAnnotation
(Flow,TS) fns toparsers-primitives.js
Test Plan
#00ff00
yarn lint && yarn flow && yarn test-ci