File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11
11
### Bug Fixes
12
12
13
13
* [ #208 ] : Add missing ` onCheck ` argument in TypeScript definition
14
+ * [ #248 ] : Add missing ` onExpand ` argument in TypeScript definition
14
15
15
16
## [ v1.6.0] ( https://github.com/jakezatecky/react-checkbox-tree/compare/v1.5.0...v1.6.0 ) (2019-12-11)
16
17
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ declare module "react-checkbox-tree" {
13
13
}
14
14
15
15
interface OnCheckNode extends Node {
16
- checked : boolean ;
16
+ checked : boolean ;
17
+ }
18
+
19
+ interface OnExpandNode extends Node {
20
+ expanded : boolean ;
17
21
}
18
22
19
23
interface Icons {
@@ -59,8 +63,8 @@ declare module "react-checkbox-tree" {
59
63
showNodeIcon ?: boolean ;
60
64
showNodeTitles ?: boolean ;
61
65
onCheck ?: ( checked : Array < string > , node : OnCheckNode ) => void ;
62
- onClick ?: ( event : { checked : boolean , value : any } ) => void ;
63
- onExpand ?: ( expanded : Array < string > ) => void ;
66
+ onClick ?: ( node : OnCheckNode ) => void ;
67
+ onExpand ?: ( expanded : Array < string > , node : OnExpandNode ) => void ;
64
68
}
65
69
66
70
export default class CheckboxTree extends React . Component < CheckboxProps > { }
You can’t perform that action at this time.
0 commit comments