Skip to content

Commit d7f9a0f

Browse files
committed
fix(node): Make ChildNode a tagged union
1 parent 5693514 commit d7f9a0f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/node.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ interface TagSourceCodeLocation extends SourceCodeLocation {
2121
}
2222

2323
export type ParentNode = Document | Element | CDATA;
24-
export type ChildNode = DataNode | Element | CDATA;
24+
export type ChildNode =
25+
| Text
26+
| Comment
27+
| ProcessingInstruction
28+
| Element
29+
| CDATA;
2530
export type AnyNode = ParentNode | ChildNode;
2631

2732
/**

0 commit comments

Comments
 (0)