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 ffb7964 commit 3938f56Copy full SHA for 3938f56
test/types/index.test.tsx
@@ -49,6 +49,17 @@ options = {
49
// $ExpectType Element | Element[]
50
parse('<a id="header" href="#">Heading</a>', options);
51
52
+// $ExpectType Element | Element[]
53
+parse('<hr>', {
54
+ library: {
55
+ cloneElement: (element, props, children) =>
56
+ React.cloneElement(element, props, children),
57
+ createElement: (type, props, children) =>
58
+ React.createElement(type, props, children),
59
+ isValidElement: element => React.isValidElement(element)
60
+ }
61
+});
62
+
63
// $ExpectType DomElement[]
64
const domNodes = htmlToDOM('<div>text</div>');
65
0 commit comments