From 73e95f3397218e9d9357a49d4e50c7837a556f78 Mon Sep 17 00:00:00 2001 From: Rex Date: Sat, 28 Sep 2024 20:25:11 +0800 Subject: [PATCH] fix type def --- templates/ui/trees/tree/Tree.d.ts | 2 +- templates/ui/trees/tree/node/Node.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/ui/trees/tree/Tree.d.ts b/templates/ui/trees/tree/Tree.d.ts index 06877b844c..47c4fcc971 100644 --- a/templates/ui/trees/tree/Tree.d.ts +++ b/templates/ui/trees/tree/Tree.d.ts @@ -67,7 +67,7 @@ declare class Tree extends Folder { readonly isNode: false; readonly nodesMap: { [nodeKey: string]: Phaser.GameObjects.GameObject }; - readonly nodeBody: Node; + readonly nodeBody: Phaser.GameObjects.GameObject; addTree(): Tree; diff --git a/templates/ui/trees/tree/node/Node.d.ts b/templates/ui/trees/tree/node/Node.d.ts index 0209329b59..54ce8f93de 100644 --- a/templates/ui/trees/tree/node/Node.d.ts +++ b/templates/ui/trees/tree/node/Node.d.ts @@ -12,7 +12,7 @@ declare class Node extends Sizer { readonly isTree: false; readonly isNode: true; - readonly nodeBody: Node; + readonly nodeBody: Phaser.GameObjects.GameObject; getTreePatent(): Tree; getTreeRoot(): Tree;