Skip to content

Fix types #8

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
merged 1 commit into from
Feb 7, 2023
Merged

Fix types #8

merged 1 commit into from
Feb 7, 2023

Conversation

difanta
Copy link
Contributor

@difanta difanta commented Feb 7, 2023

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

Added a type import that was causing problems with using this library: namely mdast nodes didn't inherit from Mdast.Parent but from a non typed version of it Parent=any. This was causing type checks to fail on properties like node.data.
I apologize in advance if i was not understanding the issue fully before making any changes, as this is my first contribution, but this small fix is what i found to be the problem, cheers and have a good day.

@github-actions github-actions bot added the 👋 phase/new Post is being triaged automatically label Feb 7, 2023
@github-actions

This comment has been minimized.

@github-actions github-actions bot added 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Feb 7, 2023
@wooorm wooorm changed the title add type import Fix types Feb 7, 2023
@wooorm wooorm merged commit 8e67fb3 into syntax-tree:main Feb 7, 2023
@wooorm wooorm added ☂️ area/types This affects typings 💪 phase/solved Post is done labels Feb 7, 2023
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Feb 7, 2023
@wooorm
Copy link
Member

wooorm commented Feb 7, 2023

Thank you, released in 2.2.4!

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.

2 participants