Skip to content

Commit 0b224fe

Browse files
committed
Fix misalignment of TreeNode's label property between PropType and TypeScript definitions
Resolves #125.
1 parent a30bcd9 commit 0b224fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### Bug Fixes
1010

1111
* [#120]: Fix issue where Internet Explorer and Microsoft Edge browsers would fail to update check state when a parent was in a half-check or indeterminate state
12+
* [#125]: Fix misalignment of TreeNode's `label` property between PropType and TypeScript definitions
1213

1314
### Other
1415

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: string;
5+
label: JSX.Element;
66
value: string;
77
children?: Array<Node>;
88
className?: string;

0 commit comments

Comments
 (0)