mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Express - add RegExp option to route function
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user