소스 검색

BufferGeometry.setIndex: Improve type definition and docs

martinRenou 5 년 전
부모
커밋
367bca8cfd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;