Skip to content

Commit eb07f31

Browse files
committed
Fix result type
1 parent 587cad1 commit eb07f31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { APIGatewayProxyEvent, Handler } from 'aws-lambda';
1+
import type { APIGatewayProxyEvent, APIGatewayProxyResult, Handler } from 'aws-lambda';
22
import type { TShallotErrorHandlerOptions } from '@shallot/http-error-handler/dist/aws';
33

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

0 commit comments

Comments
 (0)