mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-04 12:10:30 +08:00
Merge pull request #2808 from PekkaPLeppanen/patch-1
Added definition to route parameter handling
This commit is contained in:
commit
e0a1886cc2
1 file changed
+2
Vendored
+2
@@ -78,6 +78,8 @@ declare module "express" {
|
||||
param(name: string, handler: RequestParamHandler): T;
|
||||
param(name: string, matcher: RegExp): T;
|
||||
param(name: string, mapper: (param: any) => any): T;
|
||||
// Alternatively, you can pass only a callback, in which case you have the opportunity to alter the app.param() API
|
||||
param(callback: (name: string, matcher: RegExp) => RequestParamHandler): T;
|
||||
|
||||
/**
|
||||
* Special-cased "all" method, applying the given route `path`,
|
||||
|
||||
Reference in new issue
Block a user