Skip to content

Commit c38b586

Browse files
committed
chore: linting / typedoc
1 parent a677c63 commit c38b586

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

packages/event-handler/src/rest/converters.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ const createBody = (body: string | null, isBase64Encoded: boolean) => {
2929
* @param event - The API Gateway proxy event
3030
* @returns A Web API Request object
3131
*/
32-
export const proxyEventToWebRequest = (
33-
event: APIGatewayProxyEvent
34-
): Request => {
32+
const proxyEventToWebRequest = (event: APIGatewayProxyEvent): Request => {
3533
const { httpMethod, path } = event;
3634
const { domainName } = event.requestContext;
3735

@@ -79,7 +77,7 @@ export const proxyEventToWebRequest = (
7977
* @param response - The Web API Response object
8078
* @returns An API Gateway proxy result
8179
*/
82-
export const webResponseToProxyResult = async (
80+
const webResponseToProxyResult = async (
8381
response: Response
8482
): Promise<APIGatewayProxyResult> => {
8583
const headers: Record<string, string> = {};
@@ -136,10 +134,9 @@ export const webResponseToProxyResult = async (
136134
* Handles APIGatewayProxyResult, Response objects, and plain objects.
137135
*
138136
* @param response - The handler response (APIGatewayProxyResult, Response, or plain object)
139-
* @param headers - Optional headers to be included in the response
140-
* @returns A Web API Response object
137+
* @param resHeaders - Optional headers to be included in the response
141138
*/
142-
export const handlerResultToWebResponse = (
139+
const handlerResultToWebResponse = (
143140
response: HandlerResponse,
144141
resHeaders?: Headers
145142
): Response => {
@@ -188,7 +185,7 @@ export const handlerResultToWebResponse = (
188185
* @param statusCode - The response status code to return
189186
* @returns An API Gateway proxy result
190187
*/
191-
export const handlerResultToProxyResult = async (
188+
const handlerResultToProxyResult = async (
192189
response: HandlerResponse,
193190
statusCode: HttpStatusCode = HttpStatusCodes.OK
194191
): Promise<APIGatewayProxyResult> => {
@@ -205,3 +202,10 @@ export const handlerResultToProxyResult = async (
205202
isBase64Encoded: false,
206203
};
207204
};
205+
206+
export {
207+
proxyEventToWebRequest,
208+
webResponseToProxyResult,
209+
handlerResultToWebResponse,
210+
handlerResultToProxyResult,
211+
};

packages/event-handler/src/types/rest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface ErrorConstructor<T extends Error = Error> {
3030
}
3131

3232
/**
33-
* Options for the {@link Router} class
33+
* Options for the {@link Router | `Router``} class
3434
*/
3535
type RestRouterOptions = {
3636
/**

packages/event-handler/typedoc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"./src/appsync-events/index.ts",
55
"./src/appsync-graphql/index.ts",
66
"./src/bedrock-agent/index.ts",
7+
"./src/rest/index.ts",
78
"./src/types/index.ts"
89
],
910
"readme": "README.md"

packages/idempotency/src/makeIdempotent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const isOptionsWithDataIndexArgument = (
5151
*
5252
* By default, the entire first argument is hashed to create the idempotency key. You can customize this behavior:
5353
* - Use {@link IdempotencyConfig.eventKeyJmesPath | `eventKeyJmesPath`} to hash only a subset of the payload
54-
* - Use {@link ItempotentFunctionOptions.dataIndexArgument | `dataIndexArgument`} to hash a different function argument
54+
* - Use {@link ItempotentFunctionOptions | `ItempotentFunctionOptions`}`.dataIndexArgument` to hash a different function argument
5555
*
5656
*
5757
* **Using a subset of the payload**

packages/idempotency/src/types/IdempotencyOptions.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import type { IdempotencyRecord } from '../persistence/IdempotencyRecord.js';
1010
*
1111
* When making a function idempotent you should always set a persistence store.
1212
*
13-
* @see {@link persistence/DynamoDBPersistenceLayer.DynamoDBPersistenceLayer | DynamoDBPersistenceLayer}
14-
*
1513
* Optionally, you can also pass a custom configuration object,
1614
* this allows you to customize the behavior of the idempotency utility.
1715
*

0 commit comments

Comments
 (0)