|
@@ -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> {
|