소스 검색

NodeMaterial: improve CondNode constructor's type

Signed-off-by: martinRenou <[email protected]>
martinRenou 5 년 전
부모
커밋
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 {
 
-	constructor( a: Node, b: Node, op: string, ifNode: Node, elseNode: Node );
+	constructor( a: Node, b: Node, op: string, ifNode?: Node, elseNode?: Node );
 
 	a: Node;
 	b: Node;
 	op: string;
-	ifNode: Node;
-	elseNode: Node;
+	ifNode: Node | undefined;
+	elseNode: Node | undefined;
 	nodeType: string;
 
 	getCondType( builder: NodeBuilder ): string;