From 64f0e13df830ca820116e794e71f7eee8fa19641 Mon Sep 17 00:00:00 2001 From: kpisaksen Date: Thu, 17 Sep 2015 16:16:23 +0200 Subject: [PATCH] Correcting array error When I added string array to the path parameter on use, I accidentally added ErrorRequestHandler array too. It's not removed. --- express/express.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/express/express.d.ts b/express/express.d.ts index 973d45fc7..e2f6d5df2 100644 --- a/express/express.d.ts +++ b/express/express.d.ts @@ -107,7 +107,7 @@ declare module "express" { use(path: string, ...handler: RequestHandler[]): T; use(path: string, handler: ErrorRequestHandler): T; use(path: string[], ...handler: RequestHandler[]): T; - use(path: string[], handler: ErrorRequestHandler[]): T; + use(path: string[], handler: ErrorRequestHandler): T; } export function Router(options?: any): Router;