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
jsonSerializer (and I think some of the other middlewares as well) don't respect the pattern of generically passing the event from the previous middleware described in the README so the type information about the modified event is lost, replaced with base APIGatewayEvent
To Reproduce
compose(errorHandler(),jwtAuth(...),jsonSerializer())(handler)// the handler gets APIGatewayEvent without AuthorizedEvent
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.95. Please mark this comment with 👍 or 👎 to give our bot feedback!
Unfortunately there is a limit to how TypeScript is implemented that currently makes it impossible to have a full 100% passthrough of events. This was discussed in detail in #36. Please feel free to play around with it a bit, maybe there is a way to improve it I didn't find :)
Describe the bug
Hello it's me again 🙂
jsonSerializer (and I think some of the other middlewares as well) don't respect the pattern of generically passing the event from the previous middleware described in the README so the type information about the modified event is lost, replaced with base
APIGatewayEvent
To Reproduce
Expected behavior
Type information is preserved in the chain
Additional context
This should be a simple fix, replace
with
happy to PR this!
The text was updated successfully, but these errors were encountered: