-
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: move translateFunctionTypeAnnotation into emitFunction #35287
Chore: move translateFunctionTypeAnnotation into emitFunction #35287
Conversation
Please get rid of |
@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Base commit: 5744b21 |
Base commit: 5744b21 |
PR build artifact for 2226b40 is ready. |
…ok#35287) Summary: Part of facebook#34872 In this PR was moved the translateFunctionTypeAnnotation invocation ([Flow](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/flow/modules/index.js#L362), [TypeScript](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/typescript/modules/index.js#L376)) into the emitFunction call so that the case FuntionTypeAnnotation results in a one-liner ## Changelog [Internal] [Changed] - Move the translateFunctionTypeAnnotation invocation into the emitFunction Pull Request resolved: facebook#35287 Test Plan: <img width="266" alt="image" src="https://user-images.githubusercontent.com/18408823/200852605-96c233d9-b524-4b7c-bc41-5543534c296b.png"> Reviewed By: christophpurrer Differential Revision: D41157574 Pulled By: rshest fbshipit-source-id: 21f6fe7dcffd30f4009ca91a6dec81bbd4b0902a
Summary
Part of #34872
In this PR was moved the translateFunctionTypeAnnotation invocation (Flow, TypeScript) into the emitFunction call so that the case FuntionTypeAnnotation results in a one-liner
Changelog
[Internal] [Changed] - Move the translateFunctionTypeAnnotation invocation into the emitFunction
Test Plan