hi,

WTF ?
How do you know if the child have no child (html string) ? Do you spying my files ? 👎
So I must put "as" everywhere
because parser5 say "if you are a child, you have no child", and "if you are a perent then you have no parent". Is why parse5's typings sucks.

Okay AST is complex but it's why you should allow one type and make available Parent and Child types
type Node = ParentNode | ChildNode
hi,
WTF ?
How do you know if the child have no child (html string) ? Do you spying my files ? 👎
So I must put "as" everywhere
because parser5 say "if you are a child, you have no child", and "if you are a perent then you have no parent". Is why parse5's typings sucks.
Okay AST is complex but it's why you should allow one type and make available Parent and Child types
type Node = ParentNode | ChildNode