Merge pull request #6665 from phuvo/patch-1

path-to-regexp: `keys` should be optional
This commit is contained in:
Masahiro Wakame
2015-11-11 19:13:32 +09:00
+3 -1
View File
@@ -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;
}