We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b450df + 52f4193 commit fd0a9aeCopy full SHA for fd0a9ae
handler.ts
@@ -1,9 +1,6 @@
1
-import { Context, APIGatewayEvent, APIGatewayProxyResult } from "aws-lambda";
+import { APIGatewayProxyHandler } from "aws-lambda";
2
3
-export async function hello(
4
- event: APIGatewayEvent,
5
- context: Context
6
-): Promise<APIGatewayProxyResult> {
+export const hello: APIGatewayProxyHandler = async (event, context) => {
7
return {
8
statusCode: 200,
9
body: JSON.stringify({
@@ -12,4 +9,4 @@ export async function hello(
12
event,
13
10
}),
14
11
};
15
-}
+};
0 commit comments