mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
path-to-regexp: keys should be optional
This commit is contained in:
4
path-to-regexp/path-to-regexp.d.ts
vendored
4
path-to-regexp/path-to-regexp.d.ts
vendored
@@ -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