Skip to content

Commit 5ef2aef

Browse files
committed
Fix return type of wrapper
1 parent c836942 commit 5ef2aef

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,7 +1,7 @@
11
import type { APIGatewayProxyEvent, Handler } from 'aws-lambda';
22
import type { TShallotErrorHandlerOptions } from '@shallot/http-error-handler/dist/aws';
33

4-
import ShallotAWS from '@shallot/aws';
4+
import ShallotAWS, { ShallotAWSHandler } from '@shallot/aws';
55
import { ShallotAWSHttpErrorHandler } from '@shallot/http-error-handler';
66

77
import ShallotAWSSocketJsonBodyParser, {
@@ -52,7 +52,7 @@ type TShallotSocketHandler = (
5252
HttpErrorHandlerOpts?: TShallotErrorHandlerOptions;
5353
HttpJsonBodyParserOpts?: TShallotJSONBodyParserOptions;
5454
}
55-
) => ShallotRawHandler<TShallotSocketEvent>;
55+
) => ShallotAWSHandler<TShallotSocketEvent>;
5656

5757
const ShallotSocketWrapper: TShallotSocketHandler = (
5858
handler,

0 commit comments

Comments
 (0)