Browse Source

Merge pull request #18060 from martinRenou/geometry_null_index

BufferGeometry.setIndex: Improve type definition
Mr.doob 5 years ago
parent
commit
eca2be273f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/BufferGeometry.d.ts

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

@@ -48,8 +48,8 @@ export class BufferGeometry extends EventDispatcher {
 	userData: {[key: string]: any};
 	isBufferGeometry: boolean;
 
-	getIndex(): BufferAttribute;
-	setIndex( index: BufferAttribute | number[] ): void;
+	getIndex(): BufferAttribute | null;
+	setIndex( index: BufferAttribute | number[] | null ): void;
 
 	setAttribute( name: string, attribute: BufferAttribute | InterleavedBufferAttribute ): BufferGeometry;
 	getAttribute( name: string ): BufferAttribute | InterleavedBufferAttribute;