From a3e2d01e19f060646bfeaf12b46ec4985265bdfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=C3=BA?= Date: Sun, 8 Nov 2015 09:53:56 +0700 Subject: [PATCH] path-to-regexp: `keys` should be optional --- path-to-regexp/path-to-regexp.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/path-to-regexp/path-to-regexp.d.ts b/path-to-regexp/path-to-regexp.d.ts index 1cea46d85..f8c90c99e 100644 --- a/path-to-regexp/path-to-regexp.d.ts +++ b/path-to-regexp/path-to-regexp.d.ts @@ -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; + }