Repository navigation
Declare process.resourceUsage in the Node Flow environment (#2264) - #2264
Conversation
|
@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D133521486. |
Metro review: Looks goodRisk: low · Commit: This PR adds No findings. Verified
Not run: No tests, lint or benchmarks were run. The change is a Flow library definition only, so it has no runtime or performance effect. Windows doesn't matter here. Automated review by Claude. Advisory only: it never approves or blocks, and a maintainer makes the call. |
|
🥳 |
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/react-native#60202 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
e5a0468 to
2863c11
Compare
Summary: X-link: react/react-native#60202 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
2863c11 to
6646621
Compare
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 Pull Request resolved: #60202
Summary:
X-link: react/react-native#60202
Node's
process.resourceUsage()(stable since Node 12.6) is missing from theProcessdeclaration, so Flow reportsprop-missingfor any caller. Declare it with itsResourceUsagerecord, matching upstream flow-typed.Changelog: [Internal]
Differential Revision: D133521486