Browse Source

Added loadAsync TS

Lewy Blue 5 năm trước cách đây
mục cha
commit
c95d437f18
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/loaders/Loader.d.ts

+ 2 - 0
src/loaders/Loader.d.ts

@@ -17,6 +17,8 @@ export class Loader {
 	parse(): void;
 	*/
 
+	loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<any>;
+
 	setCrossOrigin( crossOrigin: string ): this;
 	setPath( path: string ): this;
 	setResourcePath( resourcePath: string ): this;