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

Fix incorrect generic type parameter #135

Merged
merged 1 commit into from Jan 10, 2022
Merged

Fix incorrect generic type parameter #135

merged 1 commit into from Jan 10, 2022

Conversation

dmisdm
Copy link
Contributor

@dmisdm dmisdm commented Jan 10, 2022

The introduction of the Document type in this PR incorrectly advertises that parse can return a Document object, because the Parser interface is now generic.

This PR exposes the parser as a more specific type of Parser so that consumers aren't given a Root | Document, but just a Root.

The introduction of the `Document` type [in this PR](postcss/postcss#1498) incorrectly advertises that `parse` can return a `Document` object.
@ai ai merged commit 3986614 into postcss:main Jan 10, 2022
@dmisdm dmisdm deleted the patch-1 branch January 10, 2022 04:58
@ai
Copy link
Member

ai commented Jan 10, 2022

Thanks. Released in 4.0.3.

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.

None yet

2 participants