From 29fe4cd9a439dd54e9fa2fa6d00b904d754fb67e Mon Sep 17 00:00:00 2001 From: linbingquan <695601626@qq.com> Date: Wed, 14 Aug 2024 13:43:57 +0800 Subject: [PATCH] StackNode: Rename `if` -> `If`, `else` -> `Else`, `elseif` -> `ElseIf` --- types/three/src/nodes/core/StackNode.d.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/types/three/src/nodes/core/StackNode.d.ts b/types/three/src/nodes/core/StackNode.d.ts index 96db42c15..a79a0a7f8 100644 --- a/types/three/src/nodes/core/StackNode.d.ts +++ b/types/three/src/nodes/core/StackNode.d.ts @@ -9,9 +9,19 @@ export default class StackNode extends Node { add(node: Node): this; - if(boolNode: Node, method: () => void): this; + If(boolNode: Node, method: () => void): this; + ElseIf(node: Node, method: () => void): this; + + Else(node: Node, method: () => void): this; + + /** + * @deprecated Use {@link StackNode#ElseIf Else()} instead. + */ elseif(node: Node, method: () => void): this; + /** + * @deprecated Use {@link StackNode#Else Else()} instead. + */ else(node: Node, method: () => void): this; }