mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
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:
1 parent
4f7b7e01d3
commit
3b6d429127
1 file changed
+1
Vendored
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user