AykutSarac %!s(int64=2) %!d(string=hai) anos
pai
achega
4f3b9df48d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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> {