mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
[@types/aws-lambda] Fix Context.memoryLimitInMB type (#40895)
* Fix memoryLimitInMB type * Fix aws-serverless-express tests
This commit is contained in:
@@ -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;
|
||||
|
||||
Vendored
+1
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user