UNPKG

dinoloop-es8

Version:

A lightweight REST API Library for building scalable Node.js server-side applications powered by Typescript

11 lines (10 loc) 505 B
import { Request, Response, NextFunction } from '../types'; import { ErrorController } from '../controller'; import { IDinoErrorController } from '../interfaces'; export declare class DinoErrorController implements IDinoErrorController { private controller; constructor(controller: ErrorController); patch(err: Error, req: Request, res: Response, next: NextFunction): void; invoke(actionName: string): void; static create(controller: ErrorController): DinoErrorController; }