From 93cba1a24c899ca8e929773b002a74e929f3ca13 Mon Sep 17 00:00:00 2001 From: Alex Varju Date: Tue, 10 Sep 2013 18:34:53 -0700 Subject: [PATCH] add missing 'routes' property to application --- express/express.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/express/express.d.ts b/express/express.d.ts index 692a9e127..af59dfcb8 100644 --- a/express/express.d.ts +++ b/express/express.d.ts @@ -1076,6 +1076,16 @@ interface ExpressApplication { map: any; locals: any; + + /** + * The app.routes object houses all of the routes defined mapped by the + * associated HTTP verb. This object may be used for introspection + * capabilities, for example Express uses this internally not only for + * routing but to provide default OPTIONS behaviour unless app.options() + * is used. Your application or framework may also remove routes by + * simply by removing them from this object. + */ + routes: any; } interface Express extends ExpressApplication {