Skip to content

Commit

Permalink
TS - fixed incorrect ErrorHandlingMiddleware callback type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Stawecki committed Apr 18, 2020
1 parent 4d94126 commit 281b106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export declare interface App {
}

export declare type Middleware = (req: Request, res: Response, next: () => void) => void;
export declare type ErrorHandlingMiddleware = (error: Error, req: Request, res: Response, next: ErrorHandlingMiddleware) => void;
export declare type ErrorHandlingMiddleware = (error: Error, req: Request, res: Response, next: () => void) => void;
export declare type ErrorCallback = (error?: Error) => void;
export declare type HandlerFunction = (req: Request, res: Response, next?: NextFunction) => void | any | Promise<any>;
export declare type LoggerFunction = (message: string) => void;
Expand Down

0 comments on commit 281b106

Please sign in to comment.