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.
1 parent 815e05d commit 3e98b37Copy full SHA for 3e98b37
README.md
@@ -21,7 +21,7 @@ or as dev dependency: `npm i -D typed-regexp`
21
```ts
22
import type { TypedRegExp } from "typed-regexp";
23
24
-const regexp = /(?<name>[ab])({.*)/ as TypedRegExp<[`{${name}`],{group:"a"|"b"}>;
+const regexp = /(?<name>[ab])({.*)/ as TypedRegExp<[`{${string}`],{name:"a"|"b"}>;
25
const match = "string to match".match(regexp);
26
if (match) {
27
const namedGroup = match.groups.name;
0 commit comments