File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 4
4
"description" : " A simple and elegant checkbox tree for React." ,
5
5
"author" : " Jake Zatecky" ,
6
6
"license" : " MIT" ,
7
- "types" : " src/types/ index.d.ts" ,
7
+ "types" : " src/index.d.ts" ,
8
8
"keywords" : [
9
9
" react" ,
10
10
" checkbox" ,
Original file line number Diff line number Diff line change 1
- declare module "react-checkbox-tree"
2
- {
3
- interface Node
4
- {
1
+ declare module "react-checkbox-tree" {
2
+ interface Node {
5
3
label : string ;
6
4
value : string ;
7
5
children ?: Array < Node > ;
@@ -11,8 +9,7 @@ declare module "react-checkbox-tree"
11
9
showCheckbox ?: boolean ;
12
10
}
13
11
14
- interface CheckboxProps
15
- {
12
+ interface CheckboxProps {
16
13
nodes : Array < Node > ;
17
14
checked : Array < string > ;
18
15
expanded : Array < string > ;
@@ -29,7 +26,7 @@ declare module "react-checkbox-tree"
29
26
onlyLeafCheckboxes ?: boolean ;
30
27
optimisticToggle ?: boolean ;
31
28
showNodeIcon ?: boolean ;
32
- onClick ?: ( clicked : string ) => void ;
29
+ onClick ?: ( event : { checked : boolean , value : any } ) => void ;
33
30
}
34
31
35
32
export default class CheckboxTree extends React . Component < CheckboxProps > { }
You can’t perform that action at this time.
0 commit comments