Replies: 2 comments 1 reply
-
Compose itself does not rely on any specific type. Which middlewares are you using? Can you maybe share the relevant code? |
Beta Was this translation helpful? Give feedback.
-
Thanks! The ideal solution would be to have the middlewares define just what they need from the input event and use generics to push it through to the output, but, unfortunately, TypeScript can't handle generics in a compose function properly. At least it couldn't when I last tried. |
Beta Was this translation helpful? Give feedback.
-
Currently
compose()
passes in aAPIGatewayProxyEvent
but I'm working withAPIGatewayProxyEventV2
. Is there an option to make it use the V2 payload?For context here are the 2 versions: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
I've already built my API around V2 so I'm hoping I don't have to change it. Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions