瀏覽代碼

Merge pull request #19277 from sirxemic/fix-cube-texture-mipmaps-type

TS: Fix mipmaps property type for cube textures
Mr.doob 5 年之前
父節點
當前提交
9b8d9940fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/textures/Texture.d.ts

+ 1 - 1
src/textures/Texture.d.ts

@@ -33,7 +33,7 @@ export class Texture extends EventDispatcher {
 	name: string;
 	sourceFile: string;
 	image: any; // HTMLImageElement or ImageData or { width: number, height: number } in some children;
-	mipmaps: ImageData[];
+	mipmaps: any[]; // ImageData[] for 2D textures and CubeTexture[] for cube textures;
 	mapping: Mapping;
 	wrapS: Wrapping;
 	wrapT: Wrapping;