mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
updated index.d.ts
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import context = require("aws-lambda-mock-context");
|
||||
import { context } from "aws-lambda-mock-context";
|
||||
import * as Alexa from "alexa-sdk";
|
||||
|
||||
const launchRequestJson: any = {
|
||||
|
||||
+27
-30
@@ -3,35 +3,32 @@
|
||||
// Definitions by: Morgan Moskalyk <morgan.moskalyk@gmail.com>, Anand Nimkar <anand.a.nimkar@gmail.com>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module "aws-lambda-mock-context" {
|
||||
declare function context(options?: Options): Context;
|
||||
|
||||
export = context;
|
||||
|
||||
function context(options?: IOptions): IContext;
|
||||
|
||||
interface IContext {
|
||||
Promise: Promise<any>;
|
||||
callbackWaitsForEmptyEventLoop: boolean;
|
||||
functionName: string;
|
||||
functionVersion: string;
|
||||
invokedFunctionArn: string;
|
||||
memoryLimitInMB: string;
|
||||
awsRequestId: string;
|
||||
invokeid: string;
|
||||
logGroupName: string;
|
||||
logStreamName: string;
|
||||
getRemainingTimeInMillis: number;
|
||||
succeed(result: any): Promise<any>;
|
||||
fail(err: any): Promise<any>;
|
||||
done(err: any, result: any): Promise<any>;
|
||||
}
|
||||
|
||||
interface IOptions {
|
||||
region: string;
|
||||
account: string;
|
||||
functionName: string;
|
||||
functionVersion: string;
|
||||
memoryLimitInMB: string;
|
||||
alias?: string;
|
||||
}
|
||||
interface Context {
|
||||
Promise: Promise<any>;
|
||||
callbackWaitsForEmptyEventLoop: boolean;
|
||||
functionName: string;
|
||||
functionVersion: string;
|
||||
invokedFunctionArn: string;
|
||||
memoryLimitInMB: string;
|
||||
awsRequestId: string;
|
||||
invokeid: string;
|
||||
logGroupName: string;
|
||||
logStreamName: string;
|
||||
getRemainingTimeInMillis: number;
|
||||
succeed(result: any): Promise<any>;
|
||||
fail(err: any): Promise<any>;
|
||||
done(err: any, result: any): Promise<any>;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
region: string;
|
||||
account: string;
|
||||
functionName: string;
|
||||
functionVersion: string;
|
||||
memoryLimitInMB: string;
|
||||
alias?: string;
|
||||
}
|
||||
|
||||
export { context };
|
||||
Reference in New Issue
Block a user