@types/three
Version:
TypeScript definitions for three
20 lines (15 loc) • 526 B
TypeScript
import { Loader } from "./Loader.js";
import { LoadingManager } from "./LoadingManager.js";
export class FileLoader extends Loader<string | ArrayBuffer> {
constructor(manager?: LoadingManager);
load(
url: string,
onLoad?: (data: string | ArrayBuffer) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (err: unknown) => void,
): void;
mimeType: string;
responseType: string;
setResponseType(value: string): this;
setMimeType(value: string): this;
}