diff --git a/index.d.ts b/index.d.ts index 59f811d..c23ae10 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,6 +1,4 @@ import { - ALBEvent, - ALBEventRequestContext, APIGatewayEventRequestContext, APIGatewayProxyEvent, APIGatewayProxyEventV2, @@ -165,7 +163,7 @@ export declare class Request { body: any; rawBody: string; route: ''; - requestContext: APIGatewayEventRequestContext | ALBEventRequestContext; + requestContext: APIGatewayEventRequestContext; isBase64Encoded: boolean; pathParameters: { [name: string]: string } | null; stageVariables: { [name: string]: string } | null; @@ -345,12 +343,12 @@ export declare class API { finally(callback: FinallyFunction): void; run( - event: APIGatewayProxyEvent | APIGatewayProxyEventV2 | ALBEvent, + event: APIGatewayProxyEvent | APIGatewayProxyEventV2, context: Context, cb: (err: Error, result: any) => void ): void; run( - event: APIGatewayProxyEvent | APIGatewayProxyEventV2 | ALBEvent, + event: APIGatewayProxyEvent | APIGatewayProxyEventV2, context: Context ): Promise; } diff --git a/package-lock.json b/package-lock.json index d68692a..02bef5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lambda-api", - "version": "1.1.1", + "version": "1.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "lambda-api", - "version": "1.1.1", + "version": "1.1.2", "license": "MIT", "devDependencies": { "@types/aws-lambda": "^8.10.51", diff --git a/package.json b/package.json index 3b46ff5..c04ba70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lambda-api", - "version": "1.1.1", + "version": "1.1.2", "description": "Lightweight web framework for your serverless applications", "main": "index.js", "types": "index.d.ts",