Skip to content

Commit 64f0e13

Browse files
committed
Correcting array error
When I added string array to the path parameter on use, I accidentally added ErrorRequestHandler array too. It's not removed.
1 parent 6f6e5c7 commit 64f0e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

express/express.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ declare module "express" {
107107
use(path: string, ...handler: RequestHandler[]): T;
108108
use(path: string, handler: ErrorRequestHandler): T;
109109
use(path: string[], ...handler: RequestHandler[]): T;
110-
use(path: string[], handler: ErrorRequestHandler[]): T;
110+
use(path: string[], handler: ErrorRequestHandler): T;
111111
}
112112

113113
export function Router(options?: any): Router;

0 commit comments

Comments
 (0)