Fix older compatible functions on the aws-lambda context (#11924)

* Updated aws-lambda

Fixed issue #10956

* Bring back old functions for Node.js Runtime v0.10.42

Bring back old functions for Node.js Runtime v0.10.42

* Fix older compatible functions on the aws-lambda context definition

Fix older compatible functions on the aws-lambda context definition
This commit is contained in:
Stef Heyenrath
2016-10-16 22:12:06 +09:00
committed by Masahiro Wakame
parent 3f67905cbe
commit 0699fa8706
2 changed files with 20 additions and 8 deletions
+3 -1
View File
@@ -23,7 +23,9 @@ declare module "aws-lambda" {
getRemainingTimeInMillis(): number;
// Functions for compatibility with earlier Node.js Runtime v0.10.42
log(message: string, object: any): void;
// For more details see http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-using-old-runtime.html#nodejs-prog-model-oldruntime-context-methods
done(error?: Error, result?: any): void;
fail(error: Error): void;
fail(message: string): void;
succeed(message: string): void;
succeed(object: any): void;