Skip to content

Commit

Permalink
fix(types): correct type for createLambdaFunction (#117)
Browse files Browse the repository at this point in the history
Co-authored-by: Gregor Martynus <[email protected]>
  • Loading branch information
ajschmidt8 and gr2m authored Jul 5, 2023
1 parent 768adb3 commit 6a0dd6f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Test

on: [push]
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]

jobs:
test_matrix:
Expand Down
11 changes: 9 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import { Probot } from "probot";
import { APIGatewayProxyHandler } from "aws-lambda";
import {
APIGatewayProxyEvent,
APIGatewayProxyResult,
Context,
} from "aws-lambda";
import { ApplicationFunction } from "probot/lib/types";

export * from "probot";

export function createLambdaFunction(
app: ApplicationFunction,
options: { probot: Probot }
): APIGatewayProxyHandler;
): (
event: APIGatewayProxyEvent,
context: Context
) => Promise<APIGatewayProxyResult>;

0 comments on commit 6a0dd6f

Please sign in to comment.