UNPKG

thrilled-be-core

Version:

Core Express backend package with middleware, logging, security, and base application setup

16 lines 544 B
import { Request, Response, NextFunction } from 'express'; import { Logger } from '../logging/Logger'; import { HttpException } from 'thrilled-be-types'; export declare class ErrorMiddleware { private logger; constructor(logger: Logger); /** * Global error handler middleware */ handle(): (error: HttpException, req: Request, res: Response, _next: NextFunction) => void; /** * 404 Not Found handler */ notFound(): (req: Request, res: Response) => void; } //# sourceMappingURL=ErrorMiddleware.d.ts.map