Update three-core.d.ts

please change the return type of the load method of CubeTextureLoader to reflect the behaviour of the library.
This commit is contained in:
João Paulo
2017-05-16 15:43:39 -03:00
committed by GitHub
parent 299cbfa81a
commit c886bcf40e
+1 -1
View File
@@ -2243,7 +2243,7 @@ export class CubeTextureLoader {
corssOrigin: string;
path: string;
load(urls: Array<string>, onLoad?: (texture: CubeTexture) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void;
load(urls: Array<string>, onLoad?: (texture: CubeTexture) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): CubeTexture;
setCrossOrigin(crossOrigin: string): CubeTextureLoader;
setPath(path: string): CubeTextureLoader;
}