Skip to content

Commit a0b4404

Browse files
authored
Merge pull request #225 from enter-at/fix/handler-decorator
fix(ApiGatewayProxyHandler): use implicit type for decorator
2 parents d81066e + 9ada1b1 commit a0b4404

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/decorator/handler/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as handlers from "../../handler";
2-
import { APIGatewayProxyEvent, Context, APIGatewayProxyResult } from "aws-lambda";
32

4-
type Handler = (event: APIGatewayProxyEvent, context: Context) => Promise<APIGatewayProxyResult>;
3+
type Handler = (_target: unknown, _propertyName: string, propertyDescriptor: PropertyDescriptor) => PropertyDescriptor;
54

65
export function APIGatewayProxyHandler(args?: handlers.APIGatewayProxyHandlerArguments): Handler {
76
const handler = new handlers.APIGatewayProxyHandler(args);

0 commit comments

Comments
 (0)