dbartholomae / lambda-middleware

A collection of middleware for AWS lambda functions.
https://dbartholomae.github.io/lambda-middleware/
MIT License
151 stars 18 forks source link

Can we use different event type? Now strict to `APIGatewayEvent ` #69

Closed Gabiras12 closed 2 years ago

Gabiras12 commented 2 years ago

Thanks for this libary.

Can we use a different lambda event type? I would like to have the event as APIGatewayProxyEventV2WithJWTAuthorizer for example.

Thanks

dbartholomae commented 2 years ago

Hi! Thanks for reaching out! I'm open to PRs around this. The original approach I tried was using TypeScript generics, but unfortunately TypeScript doesn't yet possess enough capabilities to correctly handle them in these situations: https://github.com/dbartholomae/lambda-middleware/issues/36#issuecomment-718975053

I'm open to other ideas how to solve this, though.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.