UNPKG

@overture-stack/lyric

Version:
10 lines (9 loc) 407 B
import { NextFunction, Request, Response } from 'express'; /** * A Middleware use to map Error types * @param err An Error instance * @param req Incoming HTTP Request object * @param res HTTP Response Object * @returns An HTTP Response Object with the corresponding HTTP code and message */ export declare const errorHandler: (err: Error, req: Request, res: Response, _next: NextFunction) => unknown;