You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(server): allow .concat middlewares with narrowed input types (#420)
For example, if middleware A accepts unknown as input, B can now specify
a more specific input type (e.g., number, { id: string }, etc.).
Previously, both A and B were required to use unknown for the input type
when concatenated.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Documentation**
- Improved middleware documentation with new notes and examples on using
input mapping and aligning input types when composing middleware.
- **Bug Fixes**
- Enhanced type safety and flexibility for middleware input types,
ensuring better compatibility when chaining or transforming middleware.
- **Tests**
- Updated and expanded tests to verify correct handling and rejection of
new input shapes in middleware.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments