Include Arrays in use method

Express 4.x API reference for app.use includes the use of Arrays. This update adds this to the definition file.
This commit is contained in:
kpisaksen 2015-09-11 19:05:59 +02:00
parent a461a243e2
commit bec5648ef7

View File

@ -106,6 +106,8 @@ declare module "express" {
use(handler: ErrorRequestHandler): T;
use(path: string, ...handler: RequestHandler[]): T;
use(path: string, handler: ErrorRequestHandler): T;
use(path: string[], ...handler: RequestHandler[]): T;
use(path: string[], handler: ErrorRequestHandler[]): T;
}
export function Router(options?: any): Router;