path-to-regexp: keys should be optional

This commit is contained in:
Phú
2015-11-08 09:53:56 +07:00
parent 421d6610bd
commit a3e2d01e19

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;
}