From 2c2bc38052d96f11163e1a5782bec78aa1c26636 Mon Sep 17 00:00:00 2001 From: AJ Schmidt Date: Thu, 30 Jan 2025 15:30:44 -0500 Subject: [PATCH] fix(typescript): fix types for `createLambdaFunction()` This PR fixes the types that were introduced in #132. Sorry for the noise! --- index.d.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/index.d.ts b/index.d.ts index 37c690e..1a6639e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -14,14 +14,6 @@ export function createLambdaFunction( app: ApplicationFunction, options: { probot: Probot } ): ( - event: APIGatewayProxyEvent, + event: APIGatewayProxyEvent | LambdaFunctionURLEvent, context: Context -) => Promise; - -export function createLambdaFunction( - app: ApplicationFunction, - options: { probot: Probot } -): ( - event: LambdaFunctionURLEvent, - context: Context -) => Promise; +) => Promise;