@overture-stack/lyric
Version:
Data Submission system
10 lines (9 loc) • 407 B
TypeScript
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;