We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537eb7e commit 823f4b3Copy full SHA for 823f4b3
src/__tests__/mockServer.ts
@@ -1,6 +1,8 @@
1
import type { IncomingMessage, Server, ServerResponse } from 'http';
2
import type {
3
+ ALBResult,
4
APIGatewayProxyEvent,
5
+ APIGatewayProxyEventV2,
6
APIGatewayProxyResult,
7
APIGatewayProxyStructuredResultV2,
8
Context as LambdaContext,
@@ -14,7 +16,9 @@ type LambdaHandler<T = IncomingEvent> = Handler<
14
16
T,
15
17
T extends APIGatewayProxyEvent
18
? APIGatewayProxyResult
- : APIGatewayProxyStructuredResultV2
19
+ : T extends APIGatewayProxyEventV2
20
+ ? APIGatewayProxyStructuredResultV2
21
+ : ALBResult
22
>;
23
24
// Returns a Node http handler that invokes a Lambda handler (v1 / v2)
0 commit comments