Missing signature for router.use

http://expressjs.com/4x/api.html#router.use => this function could be used with (path:string,router:router)
This commit is contained in:
Martin Mouterde
2015-11-13 15:54:23 +01:00
parent 4f7b7e01d3
commit 3b6d429127
+1
View File
@@ -110,6 +110,7 @@ declare module "express" {
use(path: string[], handler: ErrorRequestHandler): T;
use(path: RegExp, ...handler: RequestHandler[]): T;
use(path: RegExp, handler: ErrorRequestHandler): T;
use(path:string, router:Router): T;
}
export function Router(options?: any): Router;