fix: add spaces between different return types of functions#531
fix: add spaces between different return types of functions#531avivkeller merged 3 commits intonodejs:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR addresses formatting inconsistency in function return types by ensuring that union types (separated by |) have consistent spacing. The change modifies the signature generation logic to normalize return type formatting from string|number to string | number, matching the documentation table format.
Key Changes
- Modified return type string processing to split on pipes, trim whitespace, and rejoin with proper spacing
- Applied formatting normalization to all function and method signatures
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I wonder if this can be done in CSS, since each word is its own |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #531 +/- ##
==========================================
+ Coverage 79.82% 80.03% +0.20%
==========================================
Files 121 122 +1
Lines 12017 12066 +49
Branches 840 848 +8
==========================================
+ Hits 9593 9657 +64
+ Misses 2421 2406 -15
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|


Description
It should be consistent with the return type format shown in the table below, with different types separated by
|.Validation
Related Issues
Check List
node --run testand all tests passed.node --run format&node --run lint.