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(build/matches): remove unnecessary type imports #10634

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

yin1999
Copy link
Member

@yin1999 yin1999 commented Mar 3, 2024

Summary

According to the documentation, types can be registered by using @types/mdast. And we have already added this dev-dependency, so remove the import of mdast-util-directive.

Removed the dependency added in #8133.

According to the documentation [1], type imports can be registered by using `@types/mdast`.
And we have already added this dev-dependency, so remove the import of `mdast-util-directive`.

Removed the dependency added in mdn#8133.

[1]: https://www.npmjs.com/package/mdast-util-directive#types
@yin1999 yin1999 requested review from mdn-bot and a team as code owners March 3, 2024 01:30
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Mar 3, 2024
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, LGTM, and verified locally that the callback's node parameter still has its type inferred here:

visit(tree, [type, "html"], (node) => {

@caugner caugner merged commit 7a31bf6 into mdn:main Mar 4, 2024
10 checks passed
@yin1999 yin1999 deleted the remove-mdast-util-directive branch March 4, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants