From 05dfec6efd15f2c0ca3d3e48ca68a2839b9050b0 Mon Sep 17 00:00:00 2001 From: Jake Scott Date: Tue, 22 Jan 2019 09:26:04 -0500 Subject: [PATCH] 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 --- types/express-serve-static-core/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/express-serve-static-core/index.d.ts b/types/express-serve-static-core/index.d.ts index 96c4c233c2..fa25c76960 100644 --- a/types/express-serve-static-core/index.d.ts +++ b/types/express-serve-static-core/index.d.ts @@ -44,6 +44,7 @@ export type RequestHandlerParams = RequestHandler | ErrorRequestHandler | Array< export interface IRouterMatcher { (path: PathParams, ...handlers: RequestHandler[]): T; (path: PathParams, ...handlers: RequestHandlerParams[]): T; + (path: PathParams, Application): T; } export interface IRouterHandler {