Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ChainArrayElement type was incorrectly defined #325

Closed
bawangxx opened this issue Mar 20, 2021 · 2 comments
Closed

The ChainArrayElement type was incorrectly defined #325

bawangxx opened this issue Mar 20, 2021 · 2 comments
Labels

Comments

@bawangxx
Copy link

bawangxx commented Mar 20, 2021

`

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

@slevithan
Copy link
Owner

Thanks for the report! Fixed.

@slevithan slevithan added the bug label Mar 20, 2021
@slevithan
Copy link
Owner

Fix released in v5.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants