mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
add missing 'routes' property to application
This commit is contained in:
1 parent
1afb50b0e5
commit
93cba1a24c
1 file changed
+10
Vendored
+10
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user