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 interface of Raw nodes to make them extendable again #66

Merged
merged 3 commits into from
Sep 13, 2022

Conversation

Methuselah96
Copy link
Contributor

@Methuselah96 Methuselah96 commented Sep 12, 2022

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

Resolves #65.

This PR expands the eslint-ignore block introduced in d97bcbd to include the Raw interface to make it compatible with other declarations of the Raw type in other packages.

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Sep 12, 2022
@@ -1,10 +1,9 @@
import type {Literal} from 'hast'

export type Raw = {
export interface Raw extends Literal {
Copy link
Member

@wooorm wooorm Sep 12, 2022

Choose a reason for hiding this comment

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

Please check your change locally, as I believe npm test will overwrite your changes. To keep them, include the needed xo ignore.

For why, see https://github.com/xojs/xo/releases/tag/v0.52.0.

Copy link
Contributor Author

@Methuselah96 Methuselah96 Sep 12, 2022

Choose a reason for hiding this comment

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

I see now, thanks. I did run npm test, but expected it to cause the script to fail and didn't think to check to see if it overwrote the files. I've added back the eslint-diable/eslint-enable block.

@wooorm wooorm changed the title Make Raw type consistent with other packages Make Raw type extendable Sep 12, 2022
@wooorm wooorm changed the title Make Raw type extendable Fix interface of Raw nodes to make them extendable again Sep 13, 2022
@wooorm wooorm merged commit f351126 into syntax-tree:main Sep 13, 2022
@wooorm wooorm added ☂️ area/types This affects typings 💪 phase/solved Post is done labels Sep 13, 2022
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Sep 13, 2022
@wooorm
Copy link
Member

wooorm commented Sep 13, 2022

Released in 12.2.2!

@Methuselah96 Methuselah96 deleted the raw-type branch September 13, 2022 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☂️ area/types This affects typings 💪 phase/solved Post is done
Development

Successfully merging this pull request may close these issues.

mdast-util-to-hast types conflict with hast-util-raw
4 participants