File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 44 "description" : " A simple and elegant checkbox tree for React." ,
55 "author" : " Jake Zatecky" ,
66 "license" : " MIT" ,
7- "types" : " src/types/ index.d.ts" ,
7+ "types" : " src/index.d.ts" ,
88 "keywords" : [
99 " react" ,
1010 " 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 {
53 label : string ;
64 value : string ;
75 children ?: Array < Node > ;
@@ -11,8 +9,7 @@ declare module "react-checkbox-tree"
119 showCheckbox ?: boolean ;
1210 }
1311
14- interface CheckboxProps
15- {
12+ interface CheckboxProps {
1613 nodes : Array < Node > ;
1714 checked : Array < string > ;
1815 expanded : Array < string > ;
@@ -29,7 +26,7 @@ declare module "react-checkbox-tree"
2926 onlyLeafCheckboxes ?: boolean ;
3027 optimisticToggle ?: boolean ;
3128 showNodeIcon ?: boolean ;
32- onClick ?: ( clicked : string ) => void ;
29+ onClick ?: ( event : { checked : boolean , value : any } ) => void ;
3330 }
3431
3532 export default class CheckboxTree extends React . Component < CheckboxProps > { }
You can’t perform that action at this time.
0 commit comments