-
Notifications
You must be signed in to change notification settings - Fork 53
fix: TS2310 error #233
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
fix: TS2310 error #233
Conversation
This change aims to fix the following TypeScript error: ``` postcss-selector-parser.d.ts:335:15 - error TS2310: Type 'Selector' recursively references itself as a base type. ``` In addition, `npm run pretest` now checks the `.ts` file to detect such errors. Fix #232
|
Oh, another error is raised on Node 6... https://travis-ci.org/github/postcss/postcss-selector-parser/jobs/730246442#L857 |
|
Maybe the cause: microsoft/TypeScript#40166 |
This reverts commit c49dc85.
alexander-akait
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you test it on stylelint repo?
|
Yes, I could confirm it is resolved on |
|
I've pushed this feature branch to my forked You can confirm it via the forked repo. EDIT: $ git clone --depth=1 https://github.com/ybiquitous/stylelint.git
$ cd stylelint
$ git fetch origin refs/heads/postcss-selector-parser-repro
$ npm ci
$ npm run lint:types |
|
Let's do patch release |

This change aims to fix the following TypeScript error:
In addition,
npm run pretestnow checks the.tsfile to detect such errors.Fix #232