AykutSarac 2 vuotta sitten
vanhempi
commit
4f3b9df48d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/typings/types.d.ts

+ 2 - 2
src/typings/types.d.ts

@@ -2,8 +2,8 @@ type CanvasDirection = "LEFT" | "RIGHT" | "DOWN" | "UP";
 
 
 interface CustomNodeData {
 interface CustomNodeData {
   isParent: true;
   isParent: true;
-  hasChild: !!children.length;
-  children;
+  hasChild: number;
+  children: NodeData[];
 }
 }
 
 
 interface NodeData<T = any> {
 interface NodeData<T = any> {