Skip to content

fix: break and thematic-break should not have children #78

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
May 7, 2025
Merged

Conversation

adgad
Copy link
Collaborator

@adgad adgad commented May 6, 2025

No description provided.

@adgad adgad requested review from chee and a team as code owners May 6, 2025 11:11
@@ -47,7 +47,7 @@ function toValidLayoutWidth(layoutWidth) {

/**
* @template {UNode | UParent} Node
* @typedef {Omit<Node, "children"> & (Node extends UParent ? {children?: Node["children"]} : {children?: null})} TransNode
* @typedef {Omit<Node, "children"> & (Node extends UParent ? {children?: Node["children"]} : {children: null})} TransNode
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This fixes the type hinting in this file to error if a childless transformer does not have children: null

@adgad adgad merged commit 75ad59d into main May 7, 2025
2 checks passed
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.

2 participants