Skip to content

Commit 565d33d

Browse files
Merge pull request #879 from remarkablemark/fix/types
fix(types): fix `Type error: ',' expected.` in index.d.ts
2 parents 2505a8f + d9c608d commit 565d33d

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// TypeScript Version: 4.7
1+
// TypeScript Version: 5.0
22
/* eslint-disable no-undef, no-unused-vars */
33

44
import {
55
Comment,
66
Element,
77
Node,
88
ProcessingInstruction,
9-
Text,
10-
type DomHandlerOptions
9+
Text
1110
} from 'domhandler';
11+
import type { DomHandlerOptions } from 'domhandler';
1212
import htmlToDOM from 'html-dom-parser';
1313
import { ParserOptions } from 'htmlparser2';
1414

lib/attributes-to-props.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TypeScript Version: 4.7
1+
// TypeScript Version: 5.0
2+
/* eslint-disable no-unused-vars */
23

34
export type Attributes = Record<string, string>;
45

lib/dom-to-react.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TypeScript Version: 4.7
1+
// TypeScript Version: 5.0
2+
/* eslint-disable no-undef, no-unused-vars */
23

34
import { DOMNode, HTMLReactParserOptions } from '..';
45

tslint.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "dtslint/dtslint.json",
3+
"rules": {
4+
"no-duplicate-imports": false
5+
}
6+
}

0 commit comments

Comments
 (0)