mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-28 16:45:10 +08:00
Merge pull request #11269 from linck/master
Added router.stack[] definition to get all registred routes in express Router (express 4.x)
This commit is contained in:
@@ -97,6 +97,10 @@ declare module "express-serve-static-core" {
|
||||
use: IRouterHandler<this> & IRouterMatcher<this>;
|
||||
|
||||
route(prefix: PathParams): IRoute;
|
||||
/**
|
||||
* Stack of configured routes
|
||||
*/
|
||||
stack: any[];
|
||||
}
|
||||
|
||||
interface IRoute {
|
||||
@@ -1048,7 +1052,7 @@ declare module "express-serve-static-core" {
|
||||
routes: any;
|
||||
|
||||
/**
|
||||
* Using to all registered routes in Express Application
|
||||
* Used to get all registered routes in Express Application
|
||||
*/
|
||||
_router: any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user