2
0
Эх сурвалжийг харах

TS: Fix BufferGeometry.d.ts Plane.d.ts

linbingquan 5 жил өмнө
parent
commit
955de3e108

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

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

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

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