File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
declare function pathToRegexp ( path : pathToRegexp . Path , options ?: pathToRegexp . Options ) : pathToRegexp . PathRegExp ;
2
- declare function pathToRegexp ( path : pathToRegexp . Path , keys : pathToRegexp . Token [ ] , options ?: pathToRegexp . Options ) : pathToRegexp . PathRegExp ;
2
+ declare function pathToRegexp ( path : pathToRegexp . Path , keys ? : pathToRegexp . Key [ ] , options ?: pathToRegexp . Options ) : pathToRegexp . PathRegExp ;
3
3
4
4
declare namespace pathToRegexp {
5
5
export interface PathRegExp extends RegExp {
@@ -35,6 +35,7 @@ declare namespace pathToRegexp {
35
35
* Transform an array of tokens into a matching regular expression.
36
36
*/
37
37
export function tokensToRegExp ( tokens : Token [ ] , options ?: Options ) : PathRegExp ;
38
+ export function tokensToRegExp ( tokens : Token [ ] , keys ?: Key [ ] , options ?: Options ) : PathRegExp ;
38
39
39
40
export interface Key {
40
41
name : string | number ;
You can’t perform that action at this time.
0 commit comments