Repository navigation
Commit d2d545b
Declare process.resourceUsage in the Node Flow environment
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: D1335214861 parent 32a5aa6 commit d2d545b
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5612 | 5612 | | |
5613 | 5613 | | |
5614 | 5614 | | |
| 5615 | + | |
| 5616 | + | |
| 5617 | + | |
| 5618 | + | |
| 5619 | + | |
| 5620 | + | |
| 5621 | + | |
| 5622 | + | |
| 5623 | + | |
| 5624 | + | |
| 5625 | + | |
| 5626 | + | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
| 5630 | + | |
| 5631 | + | |
| 5632 | + | |
| 5633 | + | |
| 5634 | + | |
5615 | 5635 | | |
5616 | 5636 | | |
5617 | 5637 | | |
| |||
5680 | 5700 | | |
5681 | 5701 | | |
5682 | 5702 | | |
| 5703 | + | |
5683 | 5704 | | |
5684 | 5705 | | |
5685 | 5706 | | |
| |||
0 commit comments