AykutSarac 2 anni fa
parent
commit
4f3b9df48d
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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 {
   isParent: true;
-  hasChild: !!children.length;
-  children;
+  hasChild: number;
+  children: NodeData[];
 }
 
 interface NodeData<T = any> {