Skip to content

Revert recent Flow syntax codemods in react-native-github (#56998)#56998

Closed
rubennorte wants to merge 1 commit into
facebook:mainfrom
rubennorte:export-D106813102
Closed

Revert recent Flow syntax codemods in react-native-github (#56998)#56998
rubennorte wants to merge 1 commit into
facebook:mainfrom
rubennorte:export-D106813102

Conversation

@rubennorte
Copy link
Copy Markdown
Contributor

@rubennorte rubennorte commented May 29, 2026

Summary:

Reverts the recent Flow syntax codemods applied across packages/, private/, and scripts/ in react-native-github. Specifically restores the previous form for:

  • +T / +Instance style variance annotations on generic type parameters that had been converted to the newer out T / in T keyword form.
  • +field: covariant object/interface properties that had been converted to the readonly field: modifier form.
  • +[K in keyof T]: mapped-type covariance that had been converted to readonly [K in keyof T]:.

These are purely Flow type-annotation changes with no runtime behavior impact, restoring the form that the rest of the toolchain (in particular Fantom) already supports.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D106813102

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 29, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 29, 2026

@rubennorte has exported this pull request. If you are a Meta employee, you can view the originating Diff in D106813102.

@rubennorte rubennorte force-pushed the export-D106813102 branch from 1f9e28a to 0e2c88e Compare May 29, 2026 14:50
rubennorte added a commit to rubennorte/react-native that referenced this pull request May 29, 2026
…6998)

Summary:
Pull Request resolved: facebook#56998

Reverts the codemod that replaced `+T` Flow variance annotations with the newer `out T` syntax across files in `packages/react-native` and `packages/react-native-codegen`. No runtime behavior changes; this is purely a Flow type-annotation revert.

Changelog: [Internal]

Differential Revision: D106813102
@meta-codesync meta-codesync Bot changed the title Revert variance annotation codemod in react-native-github Revert variance annotation codemod in react-native-github (#56998) May 29, 2026
@rubennorte rubennorte force-pushed the export-D106813102 branch from 0e2c88e to e0120ee Compare May 29, 2026 14:54
@meta-codesync meta-codesync Bot changed the title Revert variance annotation codemod in react-native-github (#56998) Revert recent Flow syntax codemods in react-native-github May 29, 2026
@rubennorte rubennorte force-pushed the export-D106813102 branch from e0120ee to 343a033 Compare May 29, 2026 15:24
rubennorte added a commit to rubennorte/react-native that referenced this pull request May 29, 2026
…6998)

Summary:
Pull Request resolved: facebook#56998

Reverts the recent Flow syntax codemods applied across `packages/`, `private/`, and `scripts/` in react-native-github. Specifically restores the previous form for:

- `+T` / `+Instance` style variance annotations on generic type parameters that had been converted to the newer `out T` / `in T` keyword form.
- `+field:` covariant object/interface properties that had been converted to the `readonly field:` modifier form.
- `+[K in keyof T]:` mapped-type covariance that had been converted to `readonly [K in keyof T]:`.

These are purely Flow type-annotation changes with no runtime behavior impact, restoring the form that the rest of the toolchain (in particular Fantom) already supports.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D106813102
@meta-codesync meta-codesync Bot changed the title Revert recent Flow syntax codemods in react-native-github Revert recent Flow syntax codemods in react-native-github (#56998) May 29, 2026
@rubennorte rubennorte force-pushed the export-D106813102 branch from 343a033 to 623ba91 Compare May 29, 2026 16:52
…6998)

Summary:
Pull Request resolved: facebook#56998

Reverts the recent Flow syntax codemods applied across `packages/`, `private/`, and `scripts/` in react-native-github. Specifically restores the previous form for:

- `+T` / `+Instance` style variance annotations on generic type parameters that had been converted to the newer `out T` / `in T` keyword form.
- `+field:` covariant object/interface properties that had been converted to the `readonly field:` modifier form.
- `+[K in keyof T]:` mapped-type covariance that had been converted to `readonly [K in keyof T]:`.

These are purely Flow type-annotation changes with no runtime behavior impact, restoring the form that the rest of the toolchain (in particular Fantom) already supports.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D106813102
@rubennorte rubennorte force-pushed the export-D106813102 branch from 623ba91 to bd25689 Compare May 29, 2026 16:57
@meta-codesync meta-codesync Bot closed this in 833144f May 29, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label May 29, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 29, 2026

This pull request has been merged in 833144f.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @rubennorte in 833144f

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants