Skip to content

Further improve type declarations#1356

Merged
ai merged 3 commits intopostcss:masterfrom
nex3:process-types
May 11, 2020
Merged

Further improve type declarations#1356
ai merged 3 commits intopostcss:masterfrom
nex3:process-types

Conversation

@nex3
Copy link
Copy Markdown
Contributor

@nex3 nex3 commented May 7, 2020

No description provided.

nex3 added 3 commits May 7, 2020 13:19
These are not very useful, because the "void" half can never be used.
For `next()` and `prev()` this now declares the actual return value,
`undefined`. For `each()` and `walk*()`, this declares different
overloads for callbacks that do or do not return booleans.
@ai
Copy link
Copy Markdown
Member

ai commented May 8, 2020

Thanks. I will release it only on weekend. Too much work :(.

@nex3
Copy link
Copy Markdown
Contributor Author

nex3 commented May 8, 2020

Totally fine, thanks Andrey!

@ai ai merged commit fe73bd0 into postcss:master May 11, 2020
@ai
Copy link
Copy Markdown
Member

ai commented May 11, 2020

In the new version, I want to use TypeScript in tests to be sure that all types are correct

@ai
Copy link
Copy Markdown
Member

ai commented May 11, 2020

Released at 7.0.30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants