mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-10 11:50:49 +08:00
path-to-regexp: keys should be optional
This commit is contained in:
1 parent
421d6610bd
commit
a3e2d01e19
1 file changed
+3
-1
Vendored
+3
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
declare module "path-to-regexp" {
|
||||
|
||||
function pathToRegexp(path: string, keys: string[], options?: pathToRegexp.Options): RegExp;
|
||||
function pathToRegexp(path: string, keys?: string[], options?: pathToRegexp.Options): RegExp;
|
||||
|
||||
module pathToRegexp {
|
||||
|
||||
@@ -14,7 +14,9 @@ declare module "path-to-regexp" {
|
||||
strict?: boolean;
|
||||
end?: boolean;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export = pathToRegexp;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user