-
Notifications
You must be signed in to change notification settings - Fork 12.8k
ChildNode.nextSibling should be another ChildNode, not just a Node #28551
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
Comments
PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes. |
Current |
Updating
Btw, I'd be glad to grab this story if you guys haven't started yet! |
PR opened, maybe you guys want to continue the conversation in there. |
No, I think the type of microsoft/TypeScript-DOM-lib-generator@5cd35f3 introduced the deviation. |
I think he just wanted to remove |
microsoft/TypeScript-DOM-lib-generator#619 is merged, should this be closed? |
Just looking at ancient issues; yes, the above was merged and then brought over in #29690. |
TypeScript Version: 3.1.6
Search Terms: ChildNode Node nextSibling
Code
Expected behavior:
Surely a sibling of a child is itself also a child (of the same parent). So siblings should be assignable using the same variable.
Actual behavior:
Error:
Related Issues:
I think this is what #27453 also refers to, but fails to describe accurately so it has been closed.
In any case this is related to the 'solution' in #24633 which clearly shows the type of nextSibling as Node, not ChildNode.
The text was updated successfully, but these errors were encountered: