Capture scope is not preserved throughout respective namedCapture & vice versa: ```ts const res = typedRegExp('(?<name>)?').exec('')!; if (res[1]) { res.groups.name; // ?^ string | undefined // should be: string } ```
Capture scope is not preserved throughout respective namedCapture & vice versa: