File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1- import type { APIGatewayProxyEvent , Handler } from 'aws-lambda' ;
1+ import type { APIGatewayProxyEvent , APIGatewayProxyResult , Handler } from 'aws-lambda' ;
22import type { TShallotErrorHandlerOptions } from '@shallot/http-error-handler/dist/aws' ;
33
44import 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 {
You can’t perform that action at this time.
0 commit comments