From ca10f0d24de7f083523e3f85f71f7448e6015109 Mon Sep 17 00:00:00 2001 From: LebedenkoN Date: Tue, 6 Jun 2017 16:32:27 +0300 Subject: [PATCH] @types/three: Wring typings for ObjectLoader.parseImages #16914 (#16915) * Update three-core.d.ts fixed typings for THREE.ObjectLoader.parseImages * Update three-core.d.ts Changed result of ObjectLoader.parseImages function to more specific type --- types/three/three-core.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index f99485b8dd..5679c4e8c7 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -2208,7 +2208,7 @@ export class ObjectLoader { parseGeometries(json: any): any[]; // Array of BufferGeometry or Geometry or Geometry2. parseMaterials(json: any, textures: Texture[]): Material[]; // Array of Classes that inherits from Matrial. parseAnimations(json: any): AnimationClip[]; - parseImages(json: any, onLoad: () => void): any[]; + parseImages(json: any, onLoad: () => void): { [key: string]: HTMLImageElement }; parseTextures(json: any, images: any): Texture[]; parseObject(data: any, geometries: any[], materials: Material[]): T; }