浏览代码

types (GLTFLoader): change return type of GLTFLoaderPlugin.extendMaterialParams

FMS_Cat 4 年之前
父节点
当前提交
60430a581b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/loaders/GLTFLoader.d.ts

+ 1 - 1
examples/jsm/loaders/GLTFLoader.d.ts

@@ -72,7 +72,7 @@ export interface GLTFLoaderPlugin {
 	loadMaterial?: ( materialIndex: number ) => Promise<Material> | null;
 	loadMaterial?: ( materialIndex: number ) => Promise<Material> | null;
 	loadTexture?: ( textureIndex: number ) => Promise<Texture> | null;
 	loadTexture?: ( textureIndex: number ) => Promise<Texture> | null;
 	getMaterialType?: ( materialIndex: number ) => typeof Material | null;
 	getMaterialType?: ( materialIndex: number ) => typeof Material | null;
-	extendMaterialParams?: ( materialIndex: number, materialParams: { [ key: string ]: any } ) => Promise<void> | null;
+	extendMaterialParams?: ( materialIndex: number, materialParams: { [ key: string ]: any } ) => Promise<any> | null;
 	createNodeAttachment?: ( nodeIndex: number ) => Promise<Object3D> | null;
 	createNodeAttachment?: ( nodeIndex: number ) => Promise<Object3D> | null;
 
 
 }
 }