Skip to content

Commit 6a0dd6f

Browse files
ajschmidt8gr2m
andauthored
fix(types): correct type for createLambdaFunction (#117)
Co-authored-by: Gregor Martynus <[email protected]>
1 parent 768adb3 commit 6a0dd6f

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/test.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Test
2-
3-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize]
48

59
jobs:
610
test_matrix:

index.d.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import { Probot } from "probot";
2-
import { APIGatewayProxyHandler } from "aws-lambda";
2+
import {
3+
APIGatewayProxyEvent,
4+
APIGatewayProxyResult,
5+
Context,
6+
} from "aws-lambda";
37
import { ApplicationFunction } from "probot/lib/types";
48

59
export * from "probot";
610

711
export function createLambdaFunction(
812
app: ApplicationFunction,
913
options: { probot: Probot }
10-
): APIGatewayProxyHandler;
14+
): (
15+
event: APIGatewayProxyEvent,
16+
context: Context
17+
) => Promise<APIGatewayProxyResult>;

0 commit comments

Comments
 (0)