-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support TypeScript type
(T)
for turbo module codegen (module only) (#…
…34621) Summary: 1. In some situation (I don't know exactly how it is triggered but I found that during porting it to `react-native-windows`), `ExportNamedDeclaration.exportKind` is missing. Just skip the checking to `exportKind` because the rest of the checking is sufficient without reading this field. 2. Add `TSParenthesizedType` to module codegen in TypeScript, so that type `(T)` is treated like `T`. ## Changelog [General] [Changed] - codegen: support TypeScript type `(T)` for turbo module codegen (module only) Pull Request resolved: #34621 Test Plan: `yarn jest` passed in `packages/react-native-codegen` Reviewed By: RSNara Differential Revision: D39322001 Pulled By: cipolleschi fbshipit-source-id: 1855711da7062a065c05a10f275e26baa88cf75f
- Loading branch information
1 parent
9788db0
commit 624bdc7
Showing
3 changed files
with
33 additions
and
23 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