We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RegexpOptions
match(...)
1 parent 6e55e15 commit f038bf6Copy full SHA for f038bf6
src/index.ts
@@ -321,7 +321,7 @@ export type MatchFunction<P extends object = object> = (
321
*/
322
export function match<P extends object = object>(
323
str: Path,
324
- options?: ParseOptions & RegexpToFunctionOptions
+ options?: ParseOptions & RegexpOptions & RegexpToFunctionOptions
325
) {
326
const keys: Key[] = [];
327
const re = pathToRegexp(str, keys, options);
0 commit comments