Skip to content

Conversation

@Pranav-yadav
Copy link
Contributor

Summary

[Codegen 83 - assigned to @Pranav-yadav] Create a function throwIfIncorrectModuleRegistryCallArgumnent function in the errors.js file and factor together the code from Flow and TypeScript. Update the Parsers to return the right Literl type

Merged Flow and TS Parsers' IncorrectModuleRegistryCallArgumentTypeParserError error-emitting code

  • into throwIfIncorrectModuleRegistryCallArgument fun in error-utils.js

Changelog

[INTERNAL] [CHANGED] - Merge Flow and TS Parsers' IncorrectModuleRegistryCallArgumentTypeParserError error-emitting code

Test Plan

  • yarn test

…peParserError` error-emitting code

- into `throwIfIncorrectModuleRegistryCallArgument` fun in `error-utils.js`
@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 Feb 22, 2023
Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful job! :D

@facebook-github-bot
Copy link
Contributor

@cipolleschi 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 8,457,844 -931
android hermes armeabi-v7a 7,781,014 -977
android hermes x86 8,933,699 -956
android hermes x86_64 8,790,794 -960
android jsc arm64-v8a 9,092,326 -642
android jsc armeabi-v7a 8,290,348 -675
android jsc x86 9,143,079 -680
android jsc x86_64 9,401,977 -666

Base commit: 270584a
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 24, 2023
@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in 1362820.

@Pranav-yadav Pranav-yadav deleted the codegen-83-errorsJs branch February 26, 2023 10:57
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…peParserError` error-emitting code (facebook#36252)

Summary:
> [Codegen 83 - assigned to Pranav-yadav] Create a function throwIfIncorrectModuleRegistryCallArgumnent function in the errors.js file and factor together the code from [Flow](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/flow/modules/index.js#L407-L415) and [TypeScript](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/typescript/modules/index.js#L513-L521). Update the Parsers to return the right Literl type

Merged `Flow` and `TS` Parsers' `IncorrectModuleRegistryCallArgumentTypeParserError` error-emitting code

- into `throwIfIncorrectModuleRegistryCallArgument` fun in `error-utils.js`

## Changelog

[INTERNAL] [CHANGED] -  Merge `Flow` and `TS` Parsers' `IncorrectModuleRegistryCallArgumentTypeParserError` error-emitting code

Pull Request resolved: facebook#36252

Test Plan: - `yarn test`

Reviewed By: rshest

Differential Revision: D43502843

Pulled By: cipolleschi

fbshipit-source-id: eb63b40d433f90134a80c02c8f750257c82104a3
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. Merged This PR has been merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants