mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Update index.d.ts
An overload of `app.use`, see docs for `app.mountpath` here (sub-app): https://expressjs.com/en/api.html#app.mountpath
This commit is contained in:
+1
@@ -44,6 +44,7 @@ export type RequestHandlerParams = RequestHandler | ErrorRequestHandler | Array<
|
||||
export interface IRouterMatcher<T> {
|
||||
(path: PathParams, ...handlers: RequestHandler[]): T;
|
||||
(path: PathParams, ...handlers: RequestHandlerParams[]): T;
|
||||
(path: PathParams, Application): T;
|
||||
}
|
||||
|
||||
export interface IRouterHandler<T> {
|
||||
|
||||
Reference in New Issue
Block a user