mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Merge pull request #15468 from moskalyk/master
Updated export method to properly export context() function
This commit is contained in:
@@ -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 = {
|
||||
|
||||
+2
-2
@@ -5,6 +5,8 @@
|
||||
|
||||
declare function context(options?: Options): Context;
|
||||
|
||||
export = context;
|
||||
|
||||
interface Context {
|
||||
Promise: Promise<any>;
|
||||
callbackWaitsForEmptyEventLoop: boolean;
|
||||
@@ -30,5 +32,3 @@ interface Options {
|
||||
memoryLimitInMB: string;
|
||||
alias?: string;
|
||||
}
|
||||
|
||||
export { context };
|
||||
Reference in New Issue
Block a user