Skip to content

Commit

Permalink
fix(ApiGatewayProxyHandler): use implicit type for decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Pirkl committed Jul 24, 2020
1 parent d81066e commit 9ada1b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/decorator/handler/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as handlers from "../../handler";
import { APIGatewayProxyEvent, Context, APIGatewayProxyResult } from "aws-lambda";

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

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

0 comments on commit 9ada1b1

Please sign in to comment.