Closed
Description
TypeScript Version: 3.1.1
Search Terms: ChildNode
Code
let x = document.body.childNodes[1]
x = document.body.firstChild.nextSibling
Expected behavior:
No error. Type of node shouldn't depends on getting way.
Actual behavior:
Error:
Type 'Node' is not assignable to type 'ChildNode'.
Property 'after' is missing in type 'Node'.