use takes multiple request handlers now

This commit is contained in:
Santi Albo
2014-07-17 13:22:10 +01:00
parent 8b07ce8811
commit 43f1770f23
+4 -6
View File
@@ -89,12 +89,10 @@ declare module "express" {
route(path: string): IRoute;
use(server: Application): Application;
use(handler: RequestHandler): Application;
use(handler: ErrorRequestHandler): Application;
use(path: string, server: Application): Application;
use(path: string, handler: RequestHandler): Application;
use(path: string, handler: ErrorRequestHandler): Application;
use(...handler: RequestHandler[]): T;
use(handler: ErrorRequestHandler): T;
use(path: string, ...handler: RequestHandler[]): T;
use(path: string, handler: ErrorRequestHandler): T;
}
export function Router(options?: any): Router;