-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix interface support in turbo module TypeScript codegen (component o…
…nly) (#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: #34778 Test Plan: `yarn jest react-native-codegen` passed Reviewed By: cortinico Differential Revision: D39809230 Pulled By: cipolleschi fbshipit-source-id: cfb51ce915249b5abceafee1c08b7e5762d03519
- Loading branch information
1 parent
e78a495
commit 8dc6bec
Showing
6 changed files
with
483 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.