UNPKG

441 BTypeScriptView Raw
1import { ErrorRequestHandler, RequestHandler } from 'express';
2export declare function notFound({ verbose }?: {
3 verbose?: boolean;
4}): RequestHandler;
5export type ErrorHandlerOptions = {
6 public?: string;
7 logger?: boolean | {
8 error?: (msg: any) => void;
9 info?: (msg: any) => void;
10 };
11 html?: any;
12 json?: any;
13};
14export declare function errorHandler(_options?: ErrorHandlerOptions): ErrorRequestHandler;