Skip to content

Commit

Permalink
feat: Add typescript declaration (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerjensen authored Nov 3, 2021
1 parent 8a7cfe8 commit 4cfda8f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Probot } from "probot";
import { APIGatewayProxyHandler } from "aws-lambda";
import { ApplicationFunction } from "probot/lib/types";

export * from "probot";

export function createLambdaFunction(
app: ApplicationFunction,
options: { probot: Probot }
): APIGatewayProxyHandler;
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"description": "An extension for running Probot in AWS Lambda",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"lint": "prettier --check '*.{js,md,json}' 'test/**/*.{js,json}' '.github/**/*.yml'",
"lint:fix": "prettier --write '*.{js,md,json}' 'test/**/*.{js,json}' '.github/**/*.yml'",
Expand All @@ -14,6 +15,7 @@
"repository": "github:probot/adapter-aws-lambda-serverless",
"dependencies": {
"@probot/get-private-key": "^1.1.0",
"@types/aws-lambda": "^8.10.85",
"probot": "^11.0.6",
"lowercase-keys": "^2.0.0"
},
Expand Down

0 comments on commit 4cfda8f

Please sign in to comment.