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
Is your feature request related to a problem? Please describe.
I need to assign a type to function arguments of the middleware object (MiddlewareObj). Digging through the middy codebase I found the Request interface which seems to be what I need but it isn't exported so cannot be used.
Describe the solution you'd like
Export the Request interface so that consumers can assign the type to the middleware functions.
Is your feature request related to a problem? Please describe.
I need to assign a type to function arguments of the middleware object (
MiddlewareObj
). Digging through the middy codebase I found theRequest
interface which seems to be what I need but it isn't exported so cannot be used.Describe the solution you'd like
Export the Request interface so that consumers can assign the type to the middleware functions.
Describe alternatives you've considered
If there's already a type available for this it might be worth adding this to the docs.
Additional context
N/A
The text was updated successfully, but these errors were encountered: