Skip to content

Commit

Permalink
SLSCMN-21 api gateway types
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarman committed Apr 14, 2024
1 parent 9889a58 commit 71623be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/middyfy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ export type NormalizedAPIGatewayProxyEvent<
/**
* The AWS Lambda handler function signature for API Gateway proxy events.
*/
export type APIGatewayHandlerFn<
TEvent extends APIGatewayProxyEventBase<unknown> = APIGatewayProxyEvent,
> = (event: TEvent, context: Context) => Promise<APIGatewayProxyResult>;
export type APIGatewayHandlerFn<TEvent = APIGatewayProxyEvent> = (
event: TEvent,
context: Context,
) => Promise<APIGatewayProxyResult>;

/**
* The AWS Lambda handler function signature for Scheduled events
Expand Down

0 comments on commit 71623be

Please sign in to comment.