UNPKG

catch-async-wrapper-express

Version:

middleware for handling exceptions inside of async express routes and passing them to your express or custom error handlers

4 lines 247 B
import { ErrorRequestHandler, RequestHandler } from 'express'; export declare const catchAsync: (middleware: RequestHandler, errorHandler?: ErrorRequestHandler) => RequestHandler; export default catchAsync; //# sourceMappingURL=catchAsync.d.ts.map