Functions
errorHandler
- errorHandler(): ((err: any, req: Request, res: Response, next: NextFunction) => Promise<void>)
Returns ((err: any, req: Request, res: Response, next: NextFunction) => Promise<void>)
- (err: any, req: Request, res: Response, next: NextFunction): Promise<void>
Parameters
err: any
req: Request
res: Response
next: NextFunction
Returns Promise<void>
middleware
- middleware(): ((req: Request, res: Response, next: NextFunction) => Promise<void>)
Returns ((req: Request, res: Response, next: NextFunction) => Promise<void>)
- (req: Request, res: Response, next: NextFunction): Promise<void>
Parameters
req: Request
res: Response
next: NextFunction
Returns Promise<void>