mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [aws-lambda] Extended CloudFrontRequestEvent with body Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html This key is optional. See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html for details * [aws-lambda] Reordered keys in CloudFrontRequestEvent and CloudFrontResponseEvent. This is done so they match the order of https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html * [aws-lambda] CloudFrontEvent keys are all readonly. Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-request * [aws-lambda] CloudFrontRequest keys are now readonly. Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-request * [aws-lambda] Added jsdoc comment for CloudFrontRequestEvent and CloudFrontResponseEvent. * [aws-lambda] requestId is only available for viewer events Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html * [aws-lambda] request data of CloudFrontResponseEvent is readonly. > If the Lambda function modifies the request object, the changes are ignored. Source: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-response * [aws-lambda] Added jsdoc comment for CloudFrontResultResponse Also corrected link * [aws-lambda] Added apepper as co-author * [aws-lambda] TypeScript version is now 3.5 in order to user "Omit<>" See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type Also bumped TypeScript version in packages, that do depend on "aws-lambda". * [aws-lambda] Use "older" Pick/Exclude instead of "newer" Omit Omit<> is introduced in 3.5 and is "too new". Exclude<> instead is introduced in 2.8, which is "old enough". * [aws-lambda] Downgraded TypeScript version to 2.8, so Exclude can be used. Omit<> which is introduced in 3.5 is "too new". Using Exclude<> instead, that got introduced in 2.8 (see [1]) [1] https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#predefined-conditional-types
12 lines
468 B
TypeScript
12 lines
468 B
TypeScript
// Type definitions for apex.js 2.0
|
|
// Project: https://github.com/apex/node-apex
|
|
// Definitions by: Yoriki Yamaguchi <https://github.com/y13i>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
/// <reference types="aws-lambda" />
|
|
|
|
declare function λ(fn: (event: any, context: AWSLambda.Context) => any): (event: any, context: AWSLambda.Context, callback: AWSLambda.Callback) => void;
|
|
declare namespace λ {}
|
|
export = λ;
|