Restrict types to APIGatewayProxyResultV2
or APIGatewayProxyResult
#1175
Labels
APIGatewayProxyResultV2
or APIGatewayProxyResult
#1175
Describe the bug
The TypeScript types indicate properties exist in Middy handlers that do not.
To Reproduce
How to reproduce the behaviour:
Expected behaviour
If I specify
APIGatewayProxyEventV2
andAPIGatewayProxyResultV2
inexport const middy = middyCore<APIGatewayProxyEventV2, APIGatewayProxyResultV2>()
, then the handlers should only use the v2 types.Environment (please complete the following information):
Additional context
The actual types include the old event formats
The text was updated successfully, but these errors were encountered: