UNPKG

@lambda-middleware/http-error-handler

Version:

An error handler middleware for AWS http lambda functions.

4 lines (3 loc) 312 B
import { PromiseHandler } from "@lambda-middleware/utils"; import { APIGatewayProxyEvent, APIGatewayProxyResult } from "aws-lambda"; export declare const errorHandler: () => (handler: PromiseHandler<APIGatewayProxyEvent, APIGatewayProxyResult>) => PromiseHandler<APIGatewayProxyEvent, APIGatewayProxyResult>;