-
Notifications
You must be signed in to change notification settings - Fork 49
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(types): add missing index
argument to each
/walk
callback
#289
fix(types): add missing index
argument to each
/walk
callback
#289
Conversation
`container.each(callback)` and `container.walk(callback)` support the second argument `index` in the `callback` function, but the argument is not reflected on the type definitions. See the API document: - `each`: https://github.com/postcss/postcss-selector-parser/blob/3c072b84259b1966fda4823ee7f7228cabe2a164/API.md?plain=1#L462-L463 - `walk`: https://github.com/postcss/postcss-selector-parser/blob/3c072b84259b1966fda4823ee7f7228cabe2a164/API.md?plain=1#L478-L479
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.
[note] I added this file to test the .d.ts
file, but I can remove the file if unnecessary.
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.
I am fine with it
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.
We can add more tests in future when we need it
Thank you for the quick release! https://github.com/postcss/postcss-selector-parser/releases/tag/v6.0.16 |
container.each(callback)
andcontainer.walk(callback)
support the second argumentindex
in thecallback
function, but the argument is not reflected on the type definitions.See the API document:
each
:postcss-selector-parser/API.md
Lines 462 to 463 in 3c072b8
walk
:postcss-selector-parser/API.md
Lines 478 to 479 in 3c072b8
Closes #249