tedi
Version:
Express wrappper written in typescript with dependency injection capabilities
10 lines (9 loc) • 369 B
TypeScript
import * as express from "express";
import { TediError } from "./tedi-error";
export interface ErrorHandler {
catch(error: any, req: express.Request, res: express.Response): void;
}
export declare function validateErrorHandler(instance: ErrorHandler): void;
export declare class ErrorHandlerError extends TediError {
constructor(target: Object, error?: any);
}