diff --git a/types/three/src/loaders/ObjectLoader.d.ts b/types/three/src/loaders/ObjectLoader.d.ts index 3c9db483b..3e71e8c92 100644 --- a/types/three/src/loaders/ObjectLoader.d.ts +++ b/types/three/src/loaders/ObjectLoader.d.ts @@ -6,6 +6,7 @@ import { Material } from './../materials/Material'; import { AnimationClip } from './../animation/AnimationClip'; import { InstancedBufferGeometry } from '../core/InstancedBufferGeometry'; import { BufferGeometry } from '../core/BufferGeometry'; +import { Source } from '../textures/Source'; export class ObjectLoader extends Loader { constructor(manager?: LoadingManager); @@ -29,8 +30,8 @@ export class ObjectLoader extends Loader { parseGeometries(json: any): { [key: string]: InstancedBufferGeometry | BufferGeometry }; // 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): { [key: string]: HTMLImageElement }; - parseImagesAsync(json: any): Promise<{ [key: string]: HTMLImageElement }>; + parseImages(json: any, onLoad?: () => void): { [key: string]: Source }; + parseImagesAsync(json: any): Promise<{ [key: string]: Source }>; parseTextures(json: any, images: any): Texture[]; parseObject( data: any,