Skip to content

Commit b79e59c

Browse files
authoredFeb 6, 2025
fix(typescript): fix types for createLambdaFunction() (#135)
This PR fixes the types that were introduced in #132. Sorry for the noise!
1 parent 2ee0c04 commit b79e59c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed
 

‎index.d.ts

+2-10
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ export function createLambdaFunction(
1414
app: ApplicationFunction,
1515
options: { probot: Probot }
1616
): (
17-
event: APIGatewayProxyEvent,
17+
event: APIGatewayProxyEvent | LambdaFunctionURLEvent,
1818
context: Context
19-
) => Promise<APIGatewayProxyResult>;
20-
21-
export function createLambdaFunction(
22-
app: ApplicationFunction,
23-
options: { probot: Probot }
24-
): (
25-
event: LambdaFunctionURLEvent,
26-
context: Context
27-
) => Promise<LambdaFunctionURLResult>;
19+
) => Promise<APIGatewayProxyResult | LambdaFunctionURLResult>;

0 commit comments

Comments
 (0)