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 • 316 B
TypeScript
import { ErrorRequestHandler, Request, Response, NextFunction } from 'express';
export declare const sNextGenerator: (errorHandler: ErrorRequestHandler, req: Request, res: Response, next: NextFunction) => (error?: unknown) => Promise<void>;
export default sNextGenerator;
//# sourceMappingURL=sNextGenerator.d.ts.map