Improve the Developer Experience (DX) for route > server > handlers #5493
Closed
Achang0611
started this conversation in
Ideas
Replies: 1 comment
-
unfortunately thats not possible. we need a function for type inference to work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The original way of assigning middleware to a route method required significant changes to the existing code.
Original Code
Original method to add middleware
Improvement
createHandlers
.Improved Code
Beta Was this translation helpful? Give feedback.
All reactions