From 5436edcfdb0a1863a699b5875a2f7ff418959916 Mon Sep 17 00:00:00 2001 From: Morgan Moskalyk Date: Tue, 28 Mar 2017 21:29:17 -0400 Subject: [PATCH 1/4] changed to export 1 function --- .../aws-lambda-mock-context/aws-lambda-mock-context-tests.ts | 2 +- types/aws-lambda-mock-context/index.d.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/types/aws-lambda-mock-context/aws-lambda-mock-context-tests.ts b/types/aws-lambda-mock-context/aws-lambda-mock-context-tests.ts index f6bcfad5bc..09e121a776 100644 --- a/types/aws-lambda-mock-context/aws-lambda-mock-context-tests.ts +++ b/types/aws-lambda-mock-context/aws-lambda-mock-context-tests.ts @@ -1,4 +1,4 @@ -import { context } from "aws-lambda-mock-context"; +import context = require("aws-lambda-mock-context"); import * as Alexa from "alexa-sdk"; const launchRequestJson: any = { diff --git a/types/aws-lambda-mock-context/index.d.ts b/types/aws-lambda-mock-context/index.d.ts index 250dc9b681..d31ca24bce 100644 --- a/types/aws-lambda-mock-context/index.d.ts +++ b/types/aws-lambda-mock-context/index.d.ts @@ -2,9 +2,12 @@ // Project: https://github.com/moskalyk/typed-aws-lambda-mock-context // Definitions by: Morgan Moskalyk , Anand Nimkar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// export = context; declare function context(options?: Options): Context; +export = context; + interface Context { Promise: Promise; callbackWaitsForEmptyEventLoop: boolean; @@ -30,5 +33,3 @@ interface Options { memoryLimitInMB: string; alias?: string; } - -export { context }; \ No newline at end of file From 276074255a4d9129503d4b6c332696d2efcce4ca Mon Sep 17 00:00:00 2001 From: Morgan Moskalyk Date: Tue, 28 Mar 2017 21:30:43 -0400 Subject: [PATCH 2/4] removed junk --- types/aws-lambda-mock-context/index.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/aws-lambda-mock-context/index.d.ts b/types/aws-lambda-mock-context/index.d.ts index d31ca24bce..0ccd43c876 100644 --- a/types/aws-lambda-mock-context/index.d.ts +++ b/types/aws-lambda-mock-context/index.d.ts @@ -2,7 +2,6 @@ // Project: https://github.com/moskalyk/typed-aws-lambda-mock-context // Definitions by: Morgan Moskalyk , Anand Nimkar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// export = context; declare function context(options?: Options): Context; From af6bc77b1122d56a3e5064bf7475f5022a66d89a Mon Sep 17 00:00:00 2001 From: Morgan Moskalyk Date: Tue, 28 Mar 2017 21:32:03 -0400 Subject: [PATCH 3/4] removed junk --- types/aws-lambda-mock-context/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/aws-lambda-mock-context/index.d.ts b/types/aws-lambda-mock-context/index.d.ts index 0ccd43c876..a7aa74e449 100644 --- a/types/aws-lambda-mock-context/index.d.ts +++ b/types/aws-lambda-mock-context/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for AWS Lambda Mock Context SDK 1.0 +// Type definitions for AWS Lambda Mock Context SDK 1.1 // Project: https://github.com/moskalyk/typed-aws-lambda-mock-context // Definitions by: Morgan Moskalyk , Anand Nimkar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 32484a4bc9d11b6cdf55aa6836d6b50b76891dcc Mon Sep 17 00:00:00 2001 From: Morgan Moskalyk Date: Tue, 28 Mar 2017 21:33:47 -0400 Subject: [PATCH 4/4] decremented version back to 1.0 --- types/aws-lambda-mock-context/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/aws-lambda-mock-context/index.d.ts b/types/aws-lambda-mock-context/index.d.ts index a7aa74e449..0ccd43c876 100644 --- a/types/aws-lambda-mock-context/index.d.ts +++ b/types/aws-lambda-mock-context/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for AWS Lambda Mock Context SDK 1.1 +// Type definitions for AWS Lambda Mock Context SDK 1.0 // Project: https://github.com/moskalyk/typed-aws-lambda-mock-context // Definitions by: Morgan Moskalyk , Anand Nimkar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped