You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I thought this library would be a nice fit for matching named capture groups. Unfortunately it complains that the property groups does not exist in type KnownPattern<RegExpExecArray>. RegExpExecArray extends from Array, maybe that's why it's not recognized correctly. When executed without TS the playground code runs fine and does actually match.
TypeScript playground with a minimal reproduction case
Describe the bug
I thought this library would be a nice fit for matching named capture groups. Unfortunately it complains that the property
groups
does not exist in typeKnownPattern<RegExpExecArray>
.RegExpExecArray
extends fromArray
, maybe that's why it's not recognized correctly. When executed without TS the playground code runs fine and does actually match.TypeScript playground with a minimal reproduction case
Example: Playground
Versions
The text was updated successfully, but these errors were encountered: