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 f2d8673 commit 29bca05Copy full SHA for 29bca05
test/types/exports.tsx
@@ -1,6 +1,6 @@
1
import { domToReact, htmlToDOM } from 'html-react-parser';
2
3
-// $ExpectType (Element | Text | Comment | ProcessingInstruction)[]
+// $ExpectType DOMNode[]
4
const domNodes = htmlToDOM('<div>text</div>');
5
6
// $ExpectType string | Element | Element[]
test/types/lib/dom-to-react.tsx
@@ -4,7 +4,7 @@ import domToReact from 'html-react-parser/lib/dom-to-react';
import * as React from 'react';
import htmlToDOM from 'html-dom-parser';
7
8
htmlToDOM('<div>text</div>');
9
10
0 commit comments