Closed nateiler closed 3 years ago
Unfortunately, this is a limitation of TypeScript related to generics and not solvable by this library. You can find the relevant links and discussions here: https://github.com/dbartholomae/lambda-middleware/issues/36#issuecomment-720755530
I'm having a hard time determining the return type from a composeHandler. Likely due to a lack TypeScript knowleged.
Everything seems great when using out of the box handlers:
But with middleware which alter the event, something isn't right: