mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
This reverts commit 48addad317.
This commit is contained in:
parent
2c98773426
commit
03d285dfdc
@ -125,7 +125,7 @@ strOrUndefined = apiGwEvtReqCtx.routeKey;
|
||||
|
||||
/* API Gateway Event */
|
||||
strOrNull = apiGwEvt.body;
|
||||
str = apiGwEvt.headers!['example'];
|
||||
str = apiGwEvt.headers['example'];
|
||||
str = apiGwEvt.multiValueHeaders['example'][0];
|
||||
str = apiGwEvt.httpMethod;
|
||||
bool = apiGwEvt.isBase64Encoded;
|
||||
|
||||
2
types/aws-lambda/index.d.ts
vendored
2
types/aws-lambda/index.d.ts
vendored
@ -79,7 +79,7 @@ export interface APIGatewayEventRequestContext {
|
||||
// API Gateway "event"
|
||||
export interface APIGatewayProxyEvent {
|
||||
body: string | null;
|
||||
headers?: { [name: string]: string };
|
||||
headers: { [name: string]: string };
|
||||
multiValueHeaders: { [name: string]: string[] };
|
||||
httpMethod: string;
|
||||
isBase64Encoded: boolean;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user