-
-
Notifications
You must be signed in to change notification settings - Fork 35
Fix: Avoid union with EmptyObject for ctx
#3172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughThe PR refines EndpointsFactory's internal Changes
Sequence Diagram(s)(Skipped — changes are type-level/type-inference adjustments without new runtime control flow.) Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🧰 Additional context used🧠 Learnings (2)📚 Learning: 2025-05-28T18:58:10.064ZApplied to files:
📚 Learning: 2025-08-08T11:59:04.814ZApplied to files:
🧬 Code graph analysis (1)express-zod-api/src/endpoints-factory.ts (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Related to #3166
This fix prevents
ctxfrom having unions withRecord<string, never>, but it does not change the type ofctxindefaultEndpointsFactorythat remainsRecord<string, never>.The scope of the change are only the factories having at least one Middleware attached (that makes a union for
ctx)Summary by CodeRabbit
Refactor
Tests
Documentation
Chores
✏️ Tip: You can customize this high-level summary in your review settings.