فهرست منبع

NodeMaterial: improve CondNode constructor's type

Signed-off-by: martinRenou <[email protected]>
martinRenou 4 سال پیش
والد
کامیت
e5df9f61e0
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      examples/jsm/nodes/math/CondNode.d.ts

+ 3 - 3
examples/jsm/nodes/math/CondNode.d.ts

@@ -4,13 +4,13 @@ import { Node } from '../core/Node';
 
 
 export class CondNode extends TempNode {
 export class CondNode extends TempNode {
 
 
-	constructor( a: Node, b: Node, op: string, ifNode: Node, elseNode: Node );
+	constructor( a: Node, b: Node, op: string, ifNode?: Node, elseNode?: Node );
 
 
 	a: Node;
 	a: Node;
 	b: Node;
 	b: Node;
 	op: string;
 	op: string;
-	ifNode: Node;
-	elseNode: Node;
+	ifNode: Node | undefined;
+	elseNode: Node | undefined;
 	nodeType: string;
 	nodeType: string;
 
 
 	getCondType( builder: NodeBuilder ): string;
 	getCondType( builder: NodeBuilder ): string;