From b4b2803a4e003a5b86162a0c2b0b43c1a41a00ed Mon Sep 17 00:00:00 2001 From: Hassan Khan Date: Tue, 12 Dec 2017 06:17:35 +0000 Subject: [PATCH] Add type `APIGatewayEvent` to handler --- .../create/templates/aws-nodejs-typescript/handler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts b/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts index cfbcdc1cc..7dfcf29e0 100644 --- a/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts +++ b/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts @@ -1,6 +1,6 @@ -import { Handler, Callback, Context } from 'aws-lambda'; +import { APIGatewayEvent, Callback, Context, Handler } from 'aws-lambda'; -export const hello : Handler = (event, context : Context, cb : Callback) => { +export const hello: Handler = (event: APIGatewayEvent, context: Context, cb: Callback) => { const response = { statusCode: 200, body: JSON.stringify({ @@ -10,4 +10,4 @@ export const hello : Handler = (event, context : Context, cb : Callback) => { }; cb(null, response); -} \ No newline at end of file +}