We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f74fb commit 8a057edCopy full SHA for 8a057ed
test/types/index.test.tsx
@@ -60,6 +60,18 @@ parse('<hr>', {
60
}
61
});
62
63
+// $ExpectType Element | Element[]
64
+parse('<p/><p/>', {
65
+ htmlparser2: {
66
+ xmlMode: true,
67
+ decodeEntities: true,
68
+ lowerCaseTags: false,
69
+ lowerCaseAttributeNames: false,
70
+ recognizeCDATA: true,
71
+ recognizeSelfClosing: true
72
+ }
73
+});
74
+
75
// $ExpectType DomElement[]
76
const domNodes = htmlToDOM('<div>text</div>');
77
0 commit comments