Browse Source

Merge pull request #17712 from evshiron/dev

Fix some TypeScript definitions
Michael Herzog 5 years ago
parent
commit
c5f7d6daac
2 changed files with 5 additions and 3 deletions
  1. 3 1
      src/core/BufferGeometry.d.ts
  2. 2 2
      src/math/Interpolant.d.ts

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

@@ -37,7 +37,9 @@ export class BufferGeometry extends EventDispatcher {
 	attributes: {
 		[name: string]: BufferAttribute | InterleavedBufferAttribute;
 	};
-	morphAttributes: any;
+	morphAttributes: {
+		[name: string]: ( BufferAttribute | InterleavedBufferAttribute )[];
+	};
 	groups: { start: number; count: number; materialIndex?: number }[];
 	boundingBox: Box3;
 	boundingSphere: Sphere;

+ 2 - 2
src/math/Interpolant.d.ts

@@ -2,13 +2,13 @@ export abstract class Interpolant {
 
 	constructor(
 		parameterPositions: any,
-		samplesValues: any,
+		sampleValues: any,
 		sampleSize: number,
 		resultBuffer?: any
 	);
 
 	parameterPositions: any;
-	samplesValues: any;
+	sampleValues: any;
 	valueSize: number;
 	resultBuffer: any;