Skip to content

Commit 2c2bc38

Browse files
committed
fix(typescript): fix types for createLambdaFunction()
This PR fixes the types that were introduced in probot#132. Sorry for the noise!
1 parent 2ee0c04 commit 2c2bc38

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

index.d.ts

Lines changed: 2 additions & 10 deletions
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)