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

Chore: move translateFunctionTypeAnnotation into emitFunction #35287

Conversation

Marcoo09
Copy link
Contributor

@Marcoo09 Marcoo09 commented Nov 9, 2022

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

image

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 9, 2022
@github-actions
Copy link

github-actions bot commented Nov 9, 2022

Warnings
⚠️

packages/react-native-codegen/src/parsers/typescript/modules/index.js#L18 - packages/react-native-codegen/src/parsers/typescript/modules/index.js line 18 – 'NativeModuleFunctionTypeAnnotation' is defined but never used. (no-unused-vars)

Generated by 🚫 dangerJS against 2226b40

@rshest
Copy link
Contributor

rshest commented Nov 9, 2022

Please get rid of NativeModuleFunctionTypeAnnotation, as it's not used anymore :)

@facebook-github-bot
Copy link
Contributor

@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,070,038 +0
android hermes armeabi-v7a 6,442,174 +0
android hermes x86 7,485,033 +0
android hermes x86_64 7,344,612 +0
android jsc arm64-v8a 8,934,550 +0
android jsc armeabi-v7a 7,668,661 +0
android jsc x86 8,994,599 +0
android jsc x86_64 9,473,532 +0

Base commit: 5744b21
Branch: main

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 5744b21
Branch: main

@pull-bot
Copy link

pull-bot commented Nov 9, 2022

PR build artifact for 2226b40 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants