Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix interface of Raw nodes to make them extendable again #66

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

Merged
wooorm merged 3 commits into syntax-tree:main from Methuselah96:raw-type
Sep 13, 2022

Conversation

@Methuselah96
Copy link
Contributor

@Methuselah96 Methuselah96 commented Sep 12, 2022
edited
Loading

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
import type {Literal} from 'hast'

export type Raw = {
export interface Raw extendsLiteral {
Copy link
Member

@wooorm wooorm Sep 12, 2022
edited
Loading

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
edited
Loading

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

This comment has been minimized.

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

wooorm commented Sep 13, 2022

Released in 12.2.2!

Methuselah96 reacted with heart emoji

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

Reviewers

@wooorm wooorm wooorm approved these changes

@ChristianMurphy ChristianMurphy ChristianMurphy approved these changes

@JounQin JounQin JounQin approved these changes

Assignees

No one assigned

Labels

☂️ area/types This affects typings 💪 phase/solved Post is done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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

AltStyle によって変換されたページ (->オリジナル) /