From 29615beaa251c22cd65182e035d6fe8002a9f063 Mon Sep 17 00:00:00 2001 From: "jiaxin.lai" Date: Fri, 2 Aug 2019 11:07:14 +0800 Subject: [PATCH] typing INode (#5063) --- cocos/core/utils/interfaces.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/core/utils/interfaces.ts b/cocos/core/utils/interfaces.ts index 49ea1bb0a6..47176811b1 100644 --- a/cocos/core/utils/interfaces.ts +++ b/cocos/core/utils/interfaces.ts @@ -154,7 +154,7 @@ export interface IBaseNode { * node.setParent(newNode); * ``` */ - setParent (value: this | null, keepWorldTransform: boolean): void; + setParent (value: this | null, keepWorldTransform?: boolean): void; /** * @en Is this node a child of the given node? @@ -177,13 +177,13 @@ export interface IBaseNode { * @zh 移除节点中指定的子节点 * @param child 孩子节点 */ - removeChild(child: this, cleanup?: boolean): void; + removeChild (child: this, cleanup?: boolean): void; /** * @zh 插入子节点到指定位置 * @param siblingIndex 指定位置 */ - insertChild(child: this, siblingIndex: number): void; + insertChild (child: this, siblingIndex: number): void; /** * @en Returns a child from the container given its uuid.