Skip to content

Commit 4cfda8f

Browse files
authored
feat: Add typescript declaration (#81)
1 parent 8a7cfe8 commit 4cfda8f

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

index.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Probot } from "probot";
2+
import { APIGatewayProxyHandler } from "aws-lambda";
3+
import { ApplicationFunction } from "probot/lib/types";
4+
5+
export * from "probot";
6+
7+
export function createLambdaFunction(
8+
app: ApplicationFunction,
9+
options: { probot: Probot }
10+
): APIGatewayProxyHandler;

package-lock.json

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
},
77
"description": "An extension for running Probot in AWS Lambda",
88
"main": "index.js",
9+
"types": "index.d.ts",
910
"scripts": {
1011
"lint": "prettier --check '*.{js,md,json}' 'test/**/*.{js,json}' '.github/**/*.yml'",
1112
"lint:fix": "prettier --write '*.{js,md,json}' 'test/**/*.{js,json}' '.github/**/*.yml'",
@@ -14,6 +15,7 @@
1415
"repository": "github:probot/adapter-aws-lambda-serverless",
1516
"dependencies": {
1617
"@probot/get-private-key": "^1.1.0",
18+
"@types/aws-lambda": "^8.10.85",
1719
"probot": "^11.0.6",
1820
"lowercase-keys": "^2.0.0"
1921
},

0 commit comments

Comments
 (0)