Repository navigation
Name unnamed parameters in function type annotations - #2169
Conversation
Summary: X-link: react/react-native#59790 Gives every unnamed parameter in a Flow function type annotation a name: `v` for a lone parameter, `v<index>` otherwise, and `rest` for a rest parameter. Type-only change with no runtime behavior change. Changelog: [Internal] Reviewed By: panagosg7 Differential Revision: D129441819
|
@SamChou19815 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D129441819. |
Metro review: Looks goodRisk: low · Commit: This PR names previously unnamed parameters in Flow function types and has no runtime effect: all 61 changed JS files compile to identical Babel output at head and base. Flow, ESLint, Prettier, the API snapshots and No findings. Verified
Not run: No benchmarks: the compiled output is identical, so runtime cost can't change. The full Jest suite was not run, only the touched-area subset, because identical compiled output makes wider runs low value. Definitions were not generated at base or diffed against head: the session's permission check auto-denied the compound command that did this, and I did not retry that step, so the check relies on the head snapshot verification and Automated review by Claude. Advisory only: it never approves or blocks, and a maintainer makes the call. |
|
That's.. imaginative 😅 |
Summary:
X-link: react/react-native#59790
Gives every unnamed parameter in a Flow function type annotation a name:
vfor a lone parameter,v<index>otherwise, andrestfor a rest parameter. Type-only change with no runtime behavior change.Changelog: [Internal]
Reviewed By: panagosg7
Differential Revision: D129441819