mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
8dc6bec719
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: https://github.com/facebook/react-native/pull/34778 Test Plan: `yarn jest react-native-codegen` passed Reviewed By: cortinico Differential Revision: D39809230 Pulled By: cipolleschi fbshipit-source-id: cfb51ce915249b5abceafee1c08b7e5762d03519