UNPKG

error-response-handler

Version:

Comprehensive error handling and response formatting for Node.js applications

3 lines (2 loc) 238 B
import { Request, Response, NextFunction } from 'express'; export declare const asyncHandler: <T>(fn: (req: Request, res: Response, next: NextFunction) => Promise<T>) => (req: Request, res: Response, next: NextFunction) => Promise<void>;