mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
A Router is also a RequestHandler
This commit is contained in:
1 parent
14fdf0edc6
commit
8b07ce8811
1 file changed
+1
-1
Vendored
+1
-1
@@ -38,7 +38,7 @@ declare module "express" {
|
||||
(name: RegExp, ...handlers: RequestHandler[]): T;
|
||||
}
|
||||
|
||||
interface IRouter<T> {
|
||||
interface IRouter<T> extends RequestHandler {
|
||||
/**
|
||||
* Map the given param placeholder `name`(s) to the given callback(s).
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user