Skip to content

Commit 67eb973

Browse files
DigitalFlowjakezatecky
authored andcommitted
#145: Change JSX.Element to React.ReactNode in typings (#169)
1 parent 235005c commit 67eb973

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/index.d.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ import * as React from 'react';
22

33
declare module "react-checkbox-tree" {
44
interface Node {
5-
label: JSX.Element;
5+
label: React.ReactNode;
66
value: string;
77
children?: Array<Node>;
88
className?: string;
99
disabled?: boolean;
10-
icon?: JSX.Element;
10+
icon?: React.ReactNode;
1111
showCheckbox?: boolean;
1212
title?: string;
1313
}
1414

1515
interface Icons {
16-
check?: JSX.Element;
17-
uncheck?: JSX.Element;
18-
halfCheck?: JSX.Element;
19-
expandOpen?: JSX.Element;
20-
expandClose?: JSX.Element;
21-
expandAll?: JSX.Element;
22-
collapseAll?: JSX.Element;
23-
parentClose?: JSX.Element;
24-
parentOpen?: JSX.Element;
25-
leaf?: JSX.Element;
16+
check?: React.ReactNode;
17+
uncheck?: React.ReactNode;
18+
halfCheck?: React.ReactNode;
19+
expandOpen?: React.ReactNode;
20+
expandClose?: React.ReactNode;
21+
expandAll?: React.ReactNode;
22+
collapseAll?: React.ReactNode;
23+
parentClose?: React.ReactNode;
24+
parentOpen?: React.ReactNode;
25+
leaf?: React.ReactNode;
2626
}
2727

2828
interface Language {

0 commit comments

Comments
 (0)