-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Extracted IncorrectModuleRegistryCallTypeParameterParserError to throwIfIncorrectModuleRegistryCallTypeParameterParserError #34941
Conversation
…wIfIncorrectModuleRegistryCallTypeParameterParserError
Base commit: a885b1f |
Base commit: a885b1f |
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.
Wonderful work! Thank you so so much for this.
I left some comments to change the naming of some parameter and tests, since we are trying to pull together Flow and TypeScript so it can be more independent from the language.
packages/react-native-codegen/src/parsers/__tests__/error-utils-test.js
Outdated
Show resolved
Hide resolved
packages/react-native-codegen/src/parsers/__tests__/error-utils-test.js
Outdated
Show resolved
Hide resolved
packages/react-native-codegen/src/parsers/__tests__/error-utils-test.js
Outdated
Show resolved
Hide resolved
packages/react-native-codegen/src/parsers/__tests__/error-utils-test.js
Outdated
Show resolved
Hide resolved
Could you also rebase on |
@cipolleschi 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 @harshsiri110 in bb519ec. When will my fix make it into a release? | Upcoming Releases |
…wIfIncorrectModuleRegistryCallTypeParameterParserError (facebook#34941) Summary: This PR is part of facebook#34872. This PR extracts `IncorrectModuleRegistryCallTypeParameterParserError` exception to a separate function inside an `error-utils.js` file ## Changelog [Internal] [Changed] - Extract `IncorrectModuleRegistryCallTypeParameterParserError` to a seperate function inside `error-utils.js` Pull Request resolved: facebook#34941 Test Plan: ```sh yarn jest react-native-codegen ``` Added unit case in `error-utils-test.js` file <img width="940" alt="Screenshot 2022-10-11 at 4 42 03 PM" src="https://user-images.githubusercontent.com/86605635/195076564-3b023c17-661c-4330-805c-0216c4391d59.png"> Reviewed By: dmytrorykun Differential Revision: D40296642 Pulled By: cipolleschi fbshipit-source-id: 7c7bba6a4f68e9b8fa4729a7651f22cce6d7ca6e
…wIfIncorrectModuleRegistryCallTypeParameterParserError (facebook#34941) Summary: This PR is part of facebook#34872. This PR extracts `IncorrectModuleRegistryCallTypeParameterParserError` exception to a separate function inside an `error-utils.js` file ## Changelog [Internal] [Changed] - Extract `IncorrectModuleRegistryCallTypeParameterParserError` to a seperate function inside `error-utils.js` Pull Request resolved: facebook#34941 Test Plan: ```sh yarn jest react-native-codegen ``` Added unit case in `error-utils-test.js` file <img width="940" alt="Screenshot 2022-10-11 at 4 42 03 PM" src="https://user-images.githubusercontent.com/86605635/195076564-3b023c17-661c-4330-805c-0216c4391d59.png"> Reviewed By: dmytrorykun Differential Revision: D40296642 Pulled By: cipolleschi fbshipit-source-id: 7c7bba6a4f68e9b8fa4729a7651f22cce6d7ca6e
Summary
This PR is part of #34872.
This PR extracts
IncorrectModuleRegistryCallTypeParameterParserError
exception to a separate function inside anerror-utils.js
fileChangelog
[Internal] [Changed] - Extract
IncorrectModuleRegistryCallTypeParameterParserError
to a seperate function insideerror-utils.js
Test Plan
Added unit case in
error-utils-test.js
file