Skip to content

Use any for untyped Object/Function in flow-typed and debugger-shell (#59092) - #59092

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

SamChou19815 wants to merge 1 commit into
mainfrom
export-D125303674

Conversation

@SamChou19815

@SamChou19815 SamChou19815 commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary:
X-link: react/metro#2069

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

  • cli-types: the CommandFunction<Object> of Command.func. Commands with exact arg types no longer fit it.
  • yargs: the command handler, which gave handlers an any context. js1 fox handlers rely on it.
  • debugger-shell: SettingsStore's default values, which are read by key.

Changelog: [Internal]

Differential Revision: D125303674

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

…shell (#59092)

Summary:
X-link: react/metro#2069


With `experimental.function_and_object_type_is_no_longer_any`, Flow resolves `Object` and `Function` to the builtin class types instead of `any`. These annotations relied on the old meaning, so they become `any`:
- `cli-types`: the `CommandFunction<Object>` of `Command.func`. Commands with exact arg types no longer fit it.
- `yargs`: the `command` handler, which gave handlers an `any` context. `js1 fox` handlers rely on it.
- `debugger-shell`: `SettingsStore`'s default values, which are read by key.

Changelog: [Internal]

Differential Revision: D125303674
@meta-codesync meta-codesync Bot changed the title Use any for untyped Object/Function in flow-typed and debugger-shell Use any for untyped Object/Function in flow-typed and debugger-shell (#59092) Oct 14, 2026
meta-codesync Bot pushed a commit to react/metro that referenced this pull request Oct 14, 2026
…shell

Summary:
X-link: react/react-native#59092

With `experimental.function_and_object_type_is_no_longer_any`, Flow resolves `Object` and `Function` to the builtin class types instead of `any`. These annotations relied on the old meaning, so they become `any`:
- `cli-types`: the `CommandFunction<Object>` of `Command.func`. Commands with exact arg types no longer fit it.
- `yargs`: the `command` handler, which gave handlers an `any` context. `js1 fox` handlers rely on it.
- `debugger-shell`: `SettingsStore`'s default values, which are read by key.

Changelog: [Internal]

Differential Revision: D125303674

Pull Request resolved: #2069
@meta-codesync meta-codesync Bot closed this in e619ebd Oct 14, 2026
@meta-codesync

meta-codesync Bot commented Oct 14, 2026

Copy link
Copy Markdown

This pull request has been merged in e619ebd.

@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 14, 2026
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