mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Create a function emitMixedTypeAnnotation into the parsers-commons.js file to put together this code from [Flow](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/flow/modules/index.js#L400-L404) and [TypeScript](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/typescript/modules/index.js#L435-L440). Part of https://github.com/facebook/react-native/issues/34872 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [Internal] [Changed] - Extract emitMixedTypeAnnotation into the parsers-commons Pull Request resolved: https://github.com/facebook/react-native/pull/34954 Test Plan: run ```yarn jest react-native-codegen``` <img width="781" alt="image" src="https://user-images.githubusercontent.com/34857453/195291603-f138c64c-1b49-41af-a133-ee366d02706a.png"> Reviewed By: NickGerleman Differential Revision: D40297103 Pulled By: cipolleschi fbshipit-source-id: 3ee3569fbfa850ac50df18b74ecc3eefbeb267c9