Skip to content

Commit 93afb5d

Browse files
committed
Use React.ReactNode over JSX.Element for label property
Resolves #127.
1 parent fd7e888 commit 93afb5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ 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;

0 commit comments

Comments
 (0)