Skip to content

fix(types): SourceNode.children should be (SourceNode | string)[] - #554

Open
user-Param wants to merge 2 commits into
mozilla:masterfrom
user-Param:fix/482-sourcenode-children-type
Open

user-Param wants to merge 2 commits into
mozilla:masterfrom
user-Param:fix/482-sourcenode-children-type

Conversation

@user-Param

Copy link
Copy Markdown

Fixes #482 - SourceNode.children was typed as SourceNode[] but the runtime allows strings. Updated the type definition to (SourceNode | string)[].

@user-Param

Copy link
Copy Markdown
Author

This PR fixes a real bug. All 190 tests pass. Would appreciate a review!

@user-Param

Copy link
Copy Markdown
Author

All 190 tests pass. The fix is minimal and focused. Would appreciate a review!

@user-Param

Copy link
Copy Markdown
Author

@hbenl Could you please review this PR? All 190 tests pass and the fix addresses a real issue. Thank you!

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.

SourceNode.children type incorrect

2 participants