From 080bd81147ed1244da025f2da12ae2f68462a1c3 Mon Sep 17 00:00:00 2001 From: Humberto Machado Date: Sat, 3 Sep 2016 20:24:23 -0300 Subject: [PATCH] Add _router definition in Application. Using to get all registred routes --- express-serve-static-core/express-serve-static-core.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/express-serve-static-core/express-serve-static-core.d.ts b/express-serve-static-core/express-serve-static-core.d.ts index 93551ffece..e80ffa85a9 100644 --- a/express-serve-static-core/express-serve-static-core.d.ts +++ b/express-serve-static-core/express-serve-static-core.d.ts @@ -1046,6 +1046,11 @@ declare module "express-serve-static-core" { * simply by removing them from this object. */ routes: any; + + /** + * Using to all registered routes in Express Application + */ + _router: any; } interface Express extends Application {