浏览代码

fix typing

AykutSarac 2 年之前
父节点
当前提交
4f3b9df48d
共有 1 个文件被更改,包括 2 次插入2 次删除
  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> {