Express - add RegExp option to route function

This commit is contained in:
frogcjn
2016-06-25 23:53:42 +08:00
parent fc9c554c1e
commit 58e4cfdb9d
+1 -1
View File
@@ -88,7 +88,7 @@ declare module "express-serve-static-core" {
options: IRouterMatcher<T>;
head: IRouterMatcher<T>;
route(path: string): IRoute;
route(path: string | RegExp): IRoute;
use(...handler: RequestHandlerParams[]): T;
use(handler: ErrorRequestHandler | RequestHandlerParams): T;