From 58e4cfdb9d123cee377e473e16026fbf9a63a2eb Mon Sep 17 00:00:00 2001 From: frogcjn Date: Sat, 25 Jun 2016 23:53:42 +0800 Subject: [PATCH] Express - add RegExp option to route function --- express-serve-static-core/express-serve-static-core.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/express-serve-static-core/express-serve-static-core.d.ts b/express-serve-static-core/express-serve-static-core.d.ts index e15dbcb5b6..7b50e8571b 100644 --- a/express-serve-static-core/express-serve-static-core.d.ts +++ b/express-serve-static-core/express-serve-static-core.d.ts @@ -88,7 +88,7 @@ declare module "express-serve-static-core" { options: IRouterMatcher; head: IRouterMatcher; - route(path: string): IRoute; + route(path: string | RegExp): IRoute; use(...handler: RequestHandlerParams[]): T; use(handler: ErrorRequestHandler | RequestHandlerParams): T;