Skip to content

Use any where Flow Object/Function meant any - #59093

Closed
SamChou19815 wants to merge 1 commit into
mainfrom
export-D125303050
Closed

SamChou19815 wants to merge 1 commit into
mainfrom
export-D125303050

Conversation

@SamChou19815

Copy link
Copy Markdown
Member

Summary:
X-link: react/metro#2068

With experimental.function_and_object_type_is_no_longer_any, Flow resolves Object and Function to the builtin class types instead of any. These Metro annotations relied on the old meaning, so they become any, which keeps the current behavior:

Changelog: [Internal]

Reviewed By: panagosg7

Differential Revision: D125303050

Summary:
X-link: react/metro#2068

With `experimental.function_and_object_type_is_no_longer_any`, Flow resolves `Object` and `Function` to the builtin class types instead of `any`. These Metro annotations relied on the old meaning, so they become `any`, which keeps the current behavior:

Changelog: [Internal]

Reviewed By: panagosg7

Differential Revision: D125303050
@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 Oct 14, 2026
@meta-codesync

meta-codesync Bot commented Oct 14, 2026

Copy link
Copy Markdown

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

@meta-codesync meta-codesync Bot closed this in 1e70d04 Oct 14, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 14, 2026
@meta-codesync

meta-codesync Bot commented Oct 14, 2026

Copy link
Copy Markdown

This pull request has been merged in 1e70d04.

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. 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.

1 participant