5 lines
323 B
TypeScript
5 lines
323 B
TypeScript
import { Request, Response, NextFunction } from 'express';
|
|
type AsyncHandler = (req: Request, res: Response, next: NextFunction) => Promise<unknown>;
|
|
export declare function asyncHandler(handler: AsyncHandler): (req: Request, res: Response, next: NextFunction) => void;
|
|
export {};
|
|
//# sourceMappingURL=asyncHandler.d.ts.map
|