From 331bdd97d4fd0d069046fce6154190182164a8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=82=B3=E6=9D=83?= <695601626@qq.com> Date: Fri, 23 Aug 2024 10:57:56 +0800 Subject: [PATCH] StackNode: Rename `if` -> `If`, `else` -> `Else`, `elseif` -> `ElseIf` (#1146) --- 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; }