Skip to content

Commit 55605da

Browse files
test(types): fix dtslint
1 parent 78fa1ef commit 55605da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/types/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ parse('<p/><p/>', {
8686
// $ExpectType string | Element | Element[]
8787
parse('\t<p>text \r</p>\n', { trim: true });
8888

89-
// $ExpectType (Text | Comment | ProcessingInstruction | Element)[]
89+
// $ExpectType (Element | Text | Comment | ProcessingInstruction)[]
9090
const domNodes = htmlToDOM('<div>text</div>');
9191

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

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

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

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

0 commit comments

Comments
 (0)