Skip to content

Declare process.resourceUsage in the Node Flow environment - #60202

Open
christophpurrer wants to merge 1 commit into
react:mainfrom
christophpurrer:export-D133521486
Open

christophpurrer wants to merge 1 commit into
react:mainfrom
christophpurrer:export-D133521486

Conversation

@christophpurrer

Copy link
Copy Markdown
Contributor

Summary:
X-link: react/metro#2264

Node's process.resourceUsage() (stable since Node 12.6) is missing from the Process declaration, so Flow reports prop-missing for any caller. Declare it with its ResourceUsage record, matching upstream flow-typed.

Changelog: [Internal]

Differential Revision: D133521486

Summary:
X-link: react/metro#2264

Node's `process.resourceUsage()` (stable since Node 12.6) is missing from the `Process` declaration, so Flow reports `prop-missing` for any caller. Declare it with its `ResourceUsage` record, matching upstream flow-typed.

Changelog: [Internal]

Differential Revision: D133521486
@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 Nov 21, 2026
@meta-codesync

meta-codesync Bot commented Nov 21, 2026

Copy link
Copy Markdown

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

@christophpurrer christophpurrer added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner meta-exported labels Nov 21, 2026

This branch has not been deployed

No deployments
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant