Skip to content

Commit 281b106

Browse files
author
Mateusz Stawecki
committed
TS - fixed incorrect ErrorHandlingMiddleware callback type.
1 parent 4d94126 commit 281b106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export declare interface App {
4343
}
4444

4545
export declare type Middleware = (req: Request, res: Response, next: () => void) => void;
46-
export declare type ErrorHandlingMiddleware = (error: Error, req: Request, res: Response, next: ErrorHandlingMiddleware) => void;
46+
export declare type ErrorHandlingMiddleware = (error: Error, req: Request, res: Response, next: () => void) => void;
4747
export declare type ErrorCallback = (error?: Error) => void;
4848
export declare type HandlerFunction = (req: Request, res: Response, next?: NextFunction) => void | any | Promise<any>;
4949
export declare type LoggerFunction = (message: string) => void;

0 commit comments

Comments
 (0)