From 3e5f8a51a901ab55b60361e0b4376b3bc1c55b64 Mon Sep 17 00:00:00 2001 From: saelyah Date: Sat, 18 Mar 2017 08:40:59 +0100 Subject: [PATCH 1/2] Correct spelling on "ApplicationRequestHandler" --- express-serve-static-core/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/express-serve-static-core/index.d.ts b/express-serve-static-core/index.d.ts index a4ce9612e7..25f9c6787c 100644 --- a/express-serve-static-core/index.d.ts +++ b/express-serve-static-core/index.d.ts @@ -858,7 +858,7 @@ interface RequestParamHandler { (req: Request, res: Response, next: NextFunction, value: any, name: string): any; } -type ApplicaitonRequestHandler = IRouterHandler & IRouterMatcher & { +type ApplicationRequestHandler = IRouterHandler & IRouterMatcher & { (...handlers: RequestHandlerParams[]): T; }; From 0c1d76cbb1904f868c6817339baa039467a31519 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Fri, 24 Mar 2017 08:45:32 -0700 Subject: [PATCH 2/2] Fix other use --- express-serve-static-core/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/express-serve-static-core/index.d.ts b/express-serve-static-core/index.d.ts index eb977759a2..2cec8a8bf4 100644 --- a/express-serve-static-core/index.d.ts +++ b/express-serve-static-core/index.d.ts @@ -1105,7 +1105,7 @@ interface Application extends IRouter, Express.Application { */ _router: any; - use: ApplicaitonRequestHandler; + use: ApplicationRequestHandler; } interface Express extends Application {