[@types/aws-lambda] Fix Context.memoryLimitInMB type (#40895)

* Fix memoryLimitInMB type

* Fix aws-serverless-express tests
This commit is contained in:
dnalborczyk
2019-12-13 10:51:08 +00:00
committed by Orta
parent 6d36dd2cb1
commit 3b5914b4b9
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -561,7 +561,7 @@ bool = context.callbackWaitsForEmptyEventLoop;
str = context.functionName;
str = context.functionVersion;
str = context.invokedFunctionArn;
num = context.memoryLimitInMB;
str = context.memoryLimitInMB;
str = context.awsRequestId;
str = context.logGroupName;
str = context.logStreamName;
+1 -1
View File
@@ -516,7 +516,7 @@ export interface Context {
functionName: string;
functionVersion: string;
invokedFunctionArn: string;
memoryLimitInMB: number;
memoryLimitInMB: string;
awsRequestId: string;
logGroupName: string;
logStreamName: string;
@@ -16,7 +16,7 @@ const mockContext = {
functionName: 'testFunction',
functionVersion: '1',
invokedFunctionArn: 'arn',
memoryLimitInMB: 128,
memoryLimitInMB: '128',
awsRequestId: 'id',
logGroupName: 'group',
logStreamName: 'stream',