[aws-lambda] Fixes a couple of typos I made noticed by @apepper (#42437)

See original PR #42080
This commit is contained in:
Simon Buchan
2020-02-19 11:29:42 +13:00
committed by GitHub
parent 42b2f4a5f7
commit b9b6b0e9bd
25 changed files with 24 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
// Used by both APIGatewayPraxyEvent and APIGatewayAuthorizerEvent
// Used by both APIGatewayProxyEvent and APIGatewayAuthorizerEvent
export interface APIGatewayEventRequestContext {
accountId: string;
apiId: string;

View File

@@ -36,7 +36,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
export * from "./hander";
export * from "./handler";
export * from "./common/api-gateway";
export * from "./common/cloudfront";
export * from "./trigger/alb";

View File

@@ -1,4 +1,4 @@
import { Handler, Callback } from "../hander";
import { Handler, Callback } from "../handler";
export type ALBHandler = Handler<ALBEvent, ALBResult>;
export type ALBCallback = Callback<ALBResult>;

View File

@@ -1,5 +1,5 @@
import { APIGatewayEventRequestContext, AuthResponseContext } from "../common/api-gateway";
import { Callback, Handler } from "../hander";
import { Callback, Handler } from "../handler";
export type CustomAuthorizerHandler = Handler<CustomAuthorizerEvent, CustomAuthorizerResult>;
export type CustomAuthorizerCallback = Callback<CustomAuthorizerResult>;

View File

@@ -1,5 +1,5 @@
import { APIGatewayEventRequestContext } from "../common/api-gateway";
import { Callback, Handler } from "../hander";
import { Callback, Handler } from "../handler";
export type APIGatewayProxyHandler = Handler<APIGatewayProxyEvent, APIGatewayProxyResult>;
export type APIGatewayProxyCallback = Callback<APIGatewayProxyResult>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
// Note, responses are *not* lambda results, they are sent to the event ResponseURL.
export type CloudFormationCustomResourceHandler = Handler<CloudFormationCustomResourceEvent, void>;

View File

@@ -1,5 +1,5 @@
import { CloudFrontEvent, CloudFrontRequest, CloudFrontResultResponse } from "../common/cloudfront";
import { Handler, Callback } from "../hander";
import { Handler, Callback } from "../handler";
export type CloudFrontRequestHandler = Handler<CloudFrontRequestEvent, CloudFrontRequestResult>;
export type CloudFrontRequestCallback = Callback<CloudFrontRequestResult>;

View File

@@ -1,5 +1,5 @@
import { CloudFrontEvent, CloudFrontRequest, CloudFrontResponse, CloudFrontResultResponse } from "../common/cloudfront";
import { Callback, Handler } from "../hander";
import { Callback, Handler } from "../handler";
export type CloudFrontResponseHandler = Handler<CloudFrontResponseEvent, CloudFrontResponseResult>;
export type CloudFrontResponseCallback = Callback<CloudFrontResponseResult>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type ScheduledHandler = Handler<ScheduledEvent, void>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type CloudWatchLogsHandler = Handler<CloudWatchLogsEvent, void>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type CodePipelineCloudWatchActionHandler = Handler<CodePipelineCloudWatchActionEvent, void>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type CodePipelineCloudWatchPipelineHandler = Handler<CodePipelineCloudWatchPipelineEvent, void>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type CodePipelineCloudWatchStageHandler = Handler<CodePipelineCloudWatchStageEvent, void>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
import { CodePipelineCloudWatchActionEvent } from "./codepipeline-cloudwatch-action";
import { CodePipelineCloudWatchPipelineEvent } from "./codepipeline-cloudwatch-pipeline";
import { CodePipelineCloudWatchStageEvent } from "./codepipeline-cloudwatch-stage";

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type CodePipelineHandler = Handler<CodePipelineEvent, void>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
// Result type is weird: docs and samples say to return the mutated event, but it only requires an object
// with a "response" field, the type of which is specific to the event.triggerType. Leave as any for now.

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type DynamoDBStreamHandler = Handler<DynamoDBStreamEvent, void>;

View File

@@ -1,4 +1,4 @@
import { Callback, Handler } from "../hander";
import { Callback, Handler } from "../handler";
export type FirehoseTransformationHandler = Handler<FirehoseTransformationEvent, FirehoseTransformationResult>;
export type FirehoseTransformationCallback = Callback<FirehoseTransformationResult>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type KinesisStreamHandler = Handler<KinesisStreamEvent, void>;

View File

@@ -1,4 +1,4 @@
import { Callback, Handler } from "../hander";
import { Callback, Handler } from "../handler";
export type LexHandler = Handler<LexEvent, LexResult>;
export type LexCallback = Callback<LexResult>;

View File

@@ -1,4 +1,4 @@
import { Handler, Callback } from "../hander";
import { Handler, Callback } from "../handler";
/**
* S3 Batch Operations event

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type S3Handler = Handler<S3Event, void>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type SNSHandler = Handler<SNSEvent, void>;

View File

@@ -1,4 +1,4 @@
import { Handler } from "../hander";
import { Handler } from "../handler";
export type SQSHandler = Handler<SQSEvent, void>;