-
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
Chore: mv translateFunctionTypeAnnotation
fn > parsers-commons.js
#35343
Chore: mv translateFunctionTypeAnnotation
fn > parsers-commons.js
#35343
Conversation
@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Base commit: 2eccd59 |
Base commit: 2eccd59 |
PR build artifact for f906d91 is ready. |
PR build artifact for f906d91 is ready. |
/rebase |
- also moved below helpers > `parsers-commons.js`; - `getTypeAnnotationParameters` - `getFunctionNameFromParameter` - `getParameterName` - `getParameterTypeAnnotation` - `getTypeAnnotationReturnType` <3
f906d91
to
c8af053
Compare
@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
PR build artifact for c8af053 is ready. |
PR build artifact for c8af053 is ready. |
…facebook#35343) Summary: This PR should solve the `"Circular Dependencies"` problem/issue because of which some PRs are getting blocked as discussed here facebook#35288 (comment) - also moved below helpers to `parsers-commons.js`; - `getTypeAnnotationParameters` - `getFunctionNameFromParameter` - `getParameterName` - `getParameterTypeAnnotation` - `getTypeAnnotationReturnType` <3 ## Changelog [INTERNAL] [CHANGED] - Moved `translateFunctionTypeAnnotation` fn from `parsers-primitives.js` to `parsers-commons.js` also, moved it's helpers Pull Request resolved: facebook#35343 Test Plan: - ensure 👇 is `#00ff00` `yarn lint && yarn flow && yarn test-ci` Reviewed By: christophpurrer Differential Revision: D41273191 Pulled By: rshest fbshipit-source-id: cc1839a91579e7914f05516a90b280a776510c9d
Summary
This PR should solve the
"Circular Dependencies"
problem/issue because of which some PRs are getting blocked as discussed here #35288 (comment)parsers-commons.js
;getTypeAnnotationParameters
getFunctionNameFromParameter
getParameterName
getParameterTypeAnnotation
getTypeAnnotationReturnType
<3
Changelog
[INTERNAL] [CHANGED] - Moved
translateFunctionTypeAnnotation
fn fromparsers-primitives.js
toparsers-commons.js
also, moved it's helpersTest Plan
#00ff00
yarn lint && yarn flow && yarn test-ci