Correcting array error

When I added string array to the path parameter on use, I accidentally added ErrorRequestHandler array too. It's not removed.
This commit is contained in:
kpisaksen 2015-09-17 16:16:23 +02:00
parent 6f6e5c7dd9
commit 64f0e13df8

View File

@ -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;