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:
Jake Scott
2019-01-22 09:26:04 -05:00
committed by GitHub
parent ca809fa16f
commit 05dfec6efd
+1
View File
@@ -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> {