UNPKG

572 BTypeScriptView Raw
1import { Loader } from "./Loader.js";
2import { LoadingManager } from "./LoadingManager.js";
3
4export class FileLoader extends Loader<string | ArrayBuffer> {
5 constructor(manager?: LoadingManager);
6
7 load(
8 url: string,
9 onLoad?: (data: string | ArrayBuffer) => void,
10 onProgress?: (event: ProgressEvent) => void,
11 onError?: (err: unknown) => void,
12 ): void;
13
14 mimeType: string | undefined;
15 responseType: string | undefined;
16
17 setMimeType(mimeType: string): FileLoader;
18 setResponseType(responseType: string): FileLoader;
19}