Skip to content

Commit

Permalink
feat(types): add TS support for ALB
Browse files Browse the repository at this point in the history
Co-authored-by: Vitor Andrade <[email protected]>
  • Loading branch information
vandrade-git and vandrade-logitech authored Jan 25, 2025
1 parent 5edcd8a commit 1f9c70c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import {
ALBEvent,
ALBEventRequestContext,
APIGatewayEventRequestContext,
APIGatewayProxyEvent,
APIGatewayProxyEventV2,
Expand Down Expand Up @@ -163,7 +165,7 @@ export declare class Request {
body: any;
rawBody: string;
route: '';
requestContext: APIGatewayEventRequestContext;
requestContext: APIGatewayEventRequestContext | ALBEventRequestContext;
isBase64Encoded: boolean;
pathParameters: { [name: string]: string } | null;
stageVariables: { [name: string]: string } | null;
Expand Down Expand Up @@ -343,12 +345,12 @@ export declare class API {
finally(callback: FinallyFunction): void;

run(
event: APIGatewayProxyEvent | APIGatewayProxyEventV2,
event: APIGatewayProxyEvent | APIGatewayProxyEventV2 | ALBEvent,
context: Context,
cb: (err: Error, result: any) => void
): void;
run(
event: APIGatewayProxyEvent | APIGatewayProxyEventV2,
event: APIGatewayProxyEvent | APIGatewayProxyEventV2 | ALBEvent,
context: Context
): Promise<any>;
}
Expand Down

0 comments on commit 1f9c70c

Please sign in to comment.