-
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
Fix interface support in turbo module TypeScript codegen (component only) #34778
Conversation
Base commit: f85e2ec |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Hi @ZihanChen-MSFT, there are some errors in the CI for some JS files. For example, the
Could you have a look and fix these, please? |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
94fb3ab
to
0dfa3af
Compare
0feefe5
to
ea1b680
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Base commit: f85e2ec |
This pull request was successfully merged by @ZihanChen-MSFT in 8dc6bec. When will my fix make it into a release? | Upcoming Releases |
…nly) (facebook#34778) Summary: Interface was supported in component, but it only allows interfaces in limited cases. In this change, I extended interface support to all places where object literal type is supported. I also refactor the code so that properties and events are able to share the same implementation. In order not to mess up the diff, I noticed that implementations are repeated in processing array properties and non-array properties. But I leave it without refactoring. I will do it in future PRs. I also commented potential problems I found in the code. ## Changelog [General] [Changed] - Fix interface support in turbo module TypeScript codegen (component only) Pull Request resolved: facebook#34778 Test Plan: `yarn jest react-native-codegen` passed Reviewed By: cortinico Differential Revision: D39809230 Pulled By: cipolleschi fbshipit-source-id: cfb51ce915249b5abceafee1c08b7e5762d03519
Summary
Interface was supported in component, but it only allows interfaces in limited cases.
In this change, I extended interface support to all places where object literal type is supported.
I also refactor the code so that properties and events are able to share the same implementation.
In order not to mess up the diff, I noticed that implementations are repeated in processing array properties and non-array properties. But I leave it without refactoring. I will do it in future PRs.
I also commented potential problems I found in the code.
Changelog
[General] [Changed] - Fix interface support in turbo module TypeScript codegen (component only)
Test Plan
yarn jest react-native-codegen
passed