Skip to content

Commit 29bca05

Browse files
test(types): fix exports.tsx and dom-to-react.tsx
1 parent f2d8673 commit 29bca05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/types/exports.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { domToReact, htmlToDOM } from 'html-react-parser';
22

3-
// $ExpectType (Element | Text | Comment | ProcessingInstruction)[]
3+
// $ExpectType DOMNode[]
44
const domNodes = htmlToDOM('<div>text</div>');
55

66
// $ExpectType string | Element | Element[]

test/types/lib/dom-to-react.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import domToReact from 'html-react-parser/lib/dom-to-react';
44
import * as React from 'react';
55
import htmlToDOM from 'html-dom-parser';
66

7-
// $ExpectType (Element | Text | Comment | ProcessingInstruction)[]
7+
// $ExpectType DOMNode[]
88
htmlToDOM('<div>text</div>');
99

1010
// $ExpectType string | Element | Element[]

0 commit comments

Comments
 (0)