-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Codegen] Add getObjectProperties function to Parser #37789
[Codegen] Add getObjectProperties function to Parser #37789
Conversation
22efd30
to
a028760
Compare
Thanks for working on this! Would it be also possible to add unit tests for this new function, please? |
@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Base commit: 5cc8cee |
ed44d58
to
51a01b8
Compare
Sure @rshest I've just added a few unit tests |
@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary:
[Codegen 128] This PR add a
getObjectProperties
function to the Parser interface, which returns the properties of an object represented by a type annotation as requested on #34872Changelog:
[INTERNAL] [ADDED] - Add getObjectProperties function to codegen Parser
Test Plan:
Run
yarn jest react-native-codegen
and ensure CI is green