Skip to content

Commit

Permalink
Fix result type
Browse files Browse the repository at this point in the history
  • Loading branch information
baileytincher committed Apr 30, 2021
1 parent 587cad1 commit eb07f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { APIGatewayProxyEvent, Handler } from 'aws-lambda';
import type { APIGatewayProxyEvent, APIGatewayProxyResult, Handler } from 'aws-lambda';
import type { TShallotErrorHandlerOptions } from '@shallot/http-error-handler/dist/aws';

import ShallotAWS, { ShallotAWSHandler } from '@shallot/aws';
Expand Down Expand Up @@ -52,7 +52,7 @@ const ShallotSocketWrapper = <TEvent extends TShallotSocketEvent = TShallotSocke
HttpErrorHandlerOpts?: TShallotErrorHandlerOptions;
HttpJsonBodyParserOpts?: TShallotJSONBodyParserOptions;
} = {}
): ShallotAWSHandler<TEvent> => {
): ShallotAWSHandler<TEvent, APIGatewayProxyResult> => {
const wrappedResponseHandler: Handler = async (...args) => {
const res = await handler(...args);
return {
Expand Down

0 comments on commit eb07f31

Please sign in to comment.