Skip to content

Remove comment syntax from ReactNativeTypes#31457

Merged
hoxyq merged 2 commits into
react:mainfrom
huntie:reactnativetypes-syntax
Dec 11, 2024
Merged

Remove comment syntax from ReactNativeTypes#31457
hoxyq merged 2 commits into
react:mainfrom
huntie:reactnativetypes-syntax

Conversation

@huntie

@huntie huntie commented Nov 8, 2024

Copy link
Copy Markdown
Member

Summary

I'm working to get the main react-native package parsable by modern Flow tooling (both flow-bundler, flow-api-translator).

This diff trivially removes some redundant Flow comment syntax in ReactNativeTypes.js, which fixes parsing under these newer tools.

How did you test this change?

Files were pasted into react-native-github under fbsource, where Flow validates ✅.

@vercel

vercel Bot commented Nov 8, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 10, 2024 3:47pm

@react-sizebot

react-sizebot commented Nov 8, 2024

Copy link
Copy Markdown

Comparing: 372ec00c0384cd2089651154ea7c67693ee3f2a5...ccc7502879cae20c7ceec024d854fa56555e097b

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB +0.05% 1.82 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 510.81 kB 510.81 kB = 91.43 kB 91.43 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 515.74 kB 515.74 kB = 92.14 kB 92.14 kB
facebook-www/ReactDOM-prod.classic.js = 595.67 kB 595.67 kB = 105.14 kB 105.14 kB
facebook-www/ReactDOM-prod.modern.js = 585.93 kB 585.93 kB = 103.57 kB 103.57 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
react-native/shims/ReactNativeTypes.js = 8.41 kB 8.32 kB = 2.22 kB 2.19 kB

Generated by 🚫 dangerJS against db83038

@huntie huntie force-pushed the reactnativetypes-syntax branch from dd769f2 to d279459 Compare November 8, 2024 13:15
@huntie

huntie commented Nov 8, 2024

Copy link
Copy Markdown
Member Author

V2: Address Prettier and ESLint errors on touched file.

@hoxyq hoxyq merged commit 92b62f5 into react:main Dec 11, 2024
@huntie huntie deleted the reactnativetypes-syntax branch December 11, 2024 16:55
github-actions Bot pushed a commit that referenced this pull request Dec 11, 2024
# Summary

I'm working to get the main `react-native` package parsable by modern
Flow tooling (both `flow-bundler`, `flow-api-translator`).

This diff trivially removes some redundant Flow comment syntax in
`ReactNativeTypes.js`, which fixes parsing under these newer tools.

## How did you test this change?

Files were pasted into `react-native-github` under fbsource, where Flow
validates ✅.

DiffTrain build for [92b62f5](92b62f5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants