slevithan/xregexp

The ChainArrayElement type was incorrectly defined

bawangxx opened this issue · 2 comments

`

interface ChainArrayElement {

    regexp: RegExp;

    backref: number | string;

}

`

Should be changed to
`

interface ChainArrayElement {

    regex: RegExp;
   
    backref: number | string;
}

`

Property regex has an extra p

When used in TypeScript, it returns an error

screen

screen

"xregexp": "^4.4.1"

Thank you for providing such an excellent and powerful framework

Thanks for the report! Fixed.

Fix released in v5.0.2.