Browse Source

Merge pull request #17934 from linbingquan/dev-ts

TS: Fix BufferGeometry.d.ts Plane.d.ts
Mr.doob 5 years ago
parent
commit
92f08b4cde
2 changed files with 2 additions and 2 deletions
  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;