浏览代码

Merge pull request #17934 from linbingquan/dev-ts

TS: Fix BufferGeometry.d.ts Plane.d.ts
Mr.doob 5 年之前
父节点
当前提交
92f08b4cde
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/core/BufferGeometry.d.ts
  2. 1 1
      src/math/Plane.d.ts

+ 1 - 1
src/core/BufferGeometry.d.ts

@@ -33,7 +33,7 @@ export class BufferGeometry extends EventDispatcher {
 	uuid: string;
 	name: string;
 	type: string;
-	index: BufferAttribute;
+	index: BufferAttribute | null;
 	attributes: {
 		[name: string]: BufferAttribute | InterleavedBufferAttribute;
 	};

+ 1 - 1
src/math/Plane.d.ts

@@ -24,7 +24,7 @@ export class Plane {
 	distanceToSphere( sphere: Sphere ): number;
 	projectPoint( point: Vector3, target: Vector3 ): Vector3;
 	orthoPoint( point: Vector3, target: Vector3 ): Vector3;
-	intersectLine( line: Line3, target: Vector3 ): Vector3;
+	intersectLine( line: Line3, target: Vector3 ): Vector3 | undefined;
 	intersectsLine( line: Line3 ): boolean;
 	intersectsBox( box: Box3 ): boolean;
 	intersectsSphere( sphere: Sphere ): boolean;