Skip to content

Commit 761c721

Browse files
committed
Denote optional keys in tokensToRegExp docs
1 parent 1973fb3 commit 761c721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ toPathRegexp({ id: 'abc' }) //=> Throws `TypeError`.
192192

193193
Path-To-RegExp exposes the two functions used internally that accept an array of tokens.
194194

195-
* `pathToRegexp.tokensToRegExp(tokens, options)` Transform an array of tokens into a matching regular expression.
195+
* `pathToRegexp.tokensToRegExp(tokens, keys?, options?)` Transform an array of tokens into a matching regular expression.
196196
* `pathToRegexp.tokensToFunction(tokens)` Transform an array of tokens into a path generator function.
197197

198198
#### Token Information

0 commit comments

Comments
 (0)