Skip to content

Commit

Permalink
TS: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jan 6, 2021
1 parent a908e48 commit fb55cdb
Show file tree
Hide file tree
Showing 45 changed files with 47 additions and 91 deletions.
3 changes: 1 addition & 2 deletions examples/jsm/loaders/3DMLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ export class Rhino3dmLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( object: Object3D ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Object3D>;
parse( data: ArrayBufferLike, onLoad: ( object: Object3D ) => void, onError?: ( event: ErrorEvent ) => void ): void;
setLibraryPath( path: string ): Rhino3dmLoader;
setWorkerLimit( workerLimit: number ): Rhino3dmLoader;
dispose(): Rhino3dmLoader;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Object3D>;

}
5 changes: 2 additions & 3 deletions examples/jsm/loaders/3MFLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ export class ThreeMFLoader extends Loader {
availableExtensions: object[];

load( url: string, onLoad: ( object: Group ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
parse( data: ArrayBuffer ): Group;
addExtension( extension: object ):void

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Group>;
parse( data: ArrayBuffer ): Group;
addExtension( extension: object ): void

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/AMFLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class AMFLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( object: Group ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
parse( data: ArrayBuffer ): Group;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Group>;
parse( data: ArrayBuffer ): Group;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/AssimpLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export class AssimpLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( result: Assimp ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( buffer: ArrayBuffer, path: string ) : Assimp;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Assimp>;
parse( buffer: ArrayBuffer, path: string ) : Assimp;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/BVHLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export class BVHLoader extends Loader {
animateBoneRotations: boolean;

load( url: string, onLoad: ( bvh: BVH ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( text: string ) : BVH;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<BVH>;
parse( text: string ) : BVH;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/BasisTextureLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ export class BasisTextureLoader extends Loader {
workerSourceURL: string;

detectSupport( renderer: WebGLRenderer ): this;
dispose(): void;
load( url: string, onLoad: ( texture: CompressedTexture ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<CompressedTexture>;

setTranscoderPath( path: string ): this;
setWorkerLimit( workerLimit: number ): this;
dispose(): void;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/ColladaLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export class ColladaLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( collada: Collada ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( text: string, path: string ) : Collada;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Collada>;
parse( text: string, path: string ) : Collada;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/DRACOLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ export class DRACOLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( geometry: BufferGeometry ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<BufferGeometry>;
setDecoderPath( path: string ): DRACOLoader;
setDecoderConfig( config: object ): DRACOLoader;
setWorkerLimit( workerLimit: number ): DRACOLoader;
preload(): DRACOLoader;
dispose(): DRACOLoader;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<BufferGeometry>;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/FBXLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class FBXLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( object: Group ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( FBXBuffer: ArrayBuffer | string, path: string ) : Group;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Group>;
parse( FBXBuffer: ArrayBuffer | string, path: string ) : Group;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/GCodeLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class GCodeLoader extends Loader {
splitLayer: boolean;

load( url: string, onLoad: ( object: Group ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( data: string ) : Group;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Group>;
parse( data: string ) : Group;

}
4 changes: 2 additions & 2 deletions examples/jsm/loaders/GLTFLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export class GLTFLoader extends Loader {
ddsLoader: DDSLoader | null;

load( url: string, onLoad: ( gltf: GLTF ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<GLTF>;

setDRACOLoader( dracoLoader: DRACOLoader ): GLTFLoader;
setDDSLoader( ddsLoader: DDSLoader ): GLTFLoader;

Expand All @@ -50,8 +52,6 @@ export class GLTFLoader extends Loader {

parse( data: ArrayBuffer | string, path: string, onLoad: ( gltf: GLTF ) => void, onError?: ( event: ErrorEvent ) => void ) : void;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<GLTF>;

}

export interface GLTFReference {
Expand Down
3 changes: 1 addition & 2 deletions examples/jsm/loaders/HDRCubeTextureLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export class HDRCubeTextureLoader extends Loader {
type: TextureDataType;

load( urls: string[], onLoad: ( texture: CubeTexture ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
setDataType( type: TextureDataType ): this;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<CubeTexture>;
setDataType( type: TextureDataType ): this;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/KMZLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class KMZLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( kmz: Collada ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
parse( data: ArrayBuffer ): Collada;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Collada>;
parse( data: ArrayBuffer ): Collada;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/LDrawLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export class LDrawLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( data: Group ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Group>;
setFileMap( fileMap: Record<string, string> ): void;
setMaterials( materials: Material[] ): void;

Expand All @@ -18,6 +19,4 @@ export class LDrawLoader extends Loader {
addMaterial( material: Material ): void;
getMaterial( colourCode: string ): Material | null;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Group>;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/LUT3dlLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export class LUT3dlLoader extends Loader {
onProgress?: ( event: ProgressEvent ) => void,
onError?: ( event: Error ) => void
);
parse( data: string ): LUT3dlResult;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<LUT3dlResult>;
parse( data: string ): LUT3dlResult;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/LUTCubeLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export class LUTCubeLoader extends Loader {
onProgress?: ( event: ProgressEvent ) => void,
onError?: ( event: Error ) => void
);
parse( data: string ): LUTCubeResult;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<LUTCubeResult>;
parse( data: string ): LUTCubeResult;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/LWOLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export class LWOLoader extends Loader {
constructor( manager?: LoadingManager, parameters?: LWOLoaderParameters );

load( url: string, onLoad: ( lwo: LWO ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( data: ArrayBuffer, path: string, modelName: string ): LWO;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<LWO>;
parse( data: ArrayBuffer, path: string, modelName: string ): LWO;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/LottieLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export class LottieLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( texture: CanvasTexture ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<CanvasTexture>;

setQuality( value: Number ) : void;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<CanvasTexture>;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/MD2Loader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class MD2Loader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( geometry: BufferGeometry ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
parse( data: ArrayBuffer ): BufferGeometry;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<BufferGeometry>;
parse( data: ArrayBuffer ): BufferGeometry;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/MDDLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export class MDDLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( result: MDD ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( data: ArrayBuffer ) : MDD;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<MDD>;
parse( data: ArrayBuffer ) : MDD;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/MMDLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class MMDLoader extends Loader {
parser: object | null;

load( url: string, onLoad: ( mesh: SkinnedMesh ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<SkinnedMesh>;
loadAnimation( url: string, object: SkinnedMesh | THREE.Camera, onLoad: ( object: SkinnedMesh | AnimationClip ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
loadPMD( url: string, onLoad: ( object: object ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
loadPMX( url: string, onLoad: ( object: object ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
Expand All @@ -29,6 +30,4 @@ export class MMDLoader extends Loader {
loadWithAnimation( url: string, vmdUrl: string | string[], onLoad: ( object: MMDLoaderAnimationObject ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
setAnimationPath( animationPath: string ): this;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<SkinnedMesh>;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/OBJLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ export class OBJLoader extends Loader {
materials: MTLLoader.MaterialCreator;

load( url: string, onLoad: ( group: Group ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Group>;
parse( data: string ) : Group;
setMaterials( materials: MTLLoader.MaterialCreator ) : this;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Group>;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/OBJLoader2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ export class OBJLoader2 extends Loader {
setCallbackOnLoadMaterials( onLoadMaterials: Function ): this;

load( url: string, onLoad: ( object3d: Object3D ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void, onMeshAlter?: ( meshData: object ) => void ): void;
parse( content: ArrayBuffer | string ): Object3D;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Object3D>;
parse( content: ArrayBuffer | string ): Object3D;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/PCDLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export class PCDLoader extends Loader {
littleEndian: boolean;

load( url: string, onLoad: ( points: Points ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( data: ArrayBuffer | string, url: string ) : Points;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Points>;
parse( data: ArrayBuffer | string, url: string ) : Points;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/PDBLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export class PDBLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( pdb: PDB ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( text: string ) : PDB;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<PDB>;
parse( text: string ) : PDB;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/PLYLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ export class PLYLoader extends Loader {
propertyNameMapping: object;

load( url: string, onLoad: ( geometry: BufferGeometry ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<BufferGeometry>;
setPropertyNameMapping( mapping: object ) : void;
parse( data: ArrayBuffer | string ) : BufferGeometry;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<BufferGeometry>;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/PRWMLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ export class PRWMLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( geometry: BufferGeometry ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( data: ArrayBuffer ) : BufferGeometry;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<BufferGeometry>;
parse( data: ArrayBuffer ) : BufferGeometry;

static isBigEndianPlatform(): boolean;

Expand Down
3 changes: 1 addition & 2 deletions examples/jsm/loaders/STLLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class STLLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( geometry: BufferGeometry ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( data: ArrayBuffer | string ) : BufferGeometry;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<BufferGeometry>;
parse( data: ArrayBuffer | string ) : BufferGeometry;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/SVGLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ export class SVGLoader extends Loader {
defaultUnit: string;

load( url: string, onLoad: ( data: SVGResult ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( text: string ) : SVGResult;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<SVGResult>;
parse( text: string ) : SVGResult;

static getStrokeStyle( width?: number, color?: string, lineJoin?: string, lineCap?: string, miterLimit?: number ): StrokeStyle;
static pointsToStroke( points: Vector3[], style: StrokeStyle, arcDivisions?: number, minDistance?: number ): BufferGeometry;
Expand Down
3 changes: 1 addition & 2 deletions examples/jsm/loaders/TDSLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ export class TDSLoader extends Loader {
position: number;

load( url: string, onLoad: ( object: Group ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
parse( arraybuffer: ArrayBuffer, path: string ): Group;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Group>;
parse( arraybuffer: ArrayBuffer, path: string ): Group;

debugMessage( message: object ): void;
endChunk( chunk: object ): void;
Expand Down
3 changes: 1 addition & 2 deletions examples/jsm/loaders/TGALoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class TGALoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( texture: Texture ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( data: ArrayBuffer ) : Texture;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Texture>;
parse( data: ArrayBuffer ) : Texture;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/TTFLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class TTFLoader extends Loader {
reversed: boolean;

load( url: string, onLoad: ( json: object ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
parse( arraybuffer: ArrayBuffer ): object;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<object>;
parse( arraybuffer: ArrayBuffer ): object;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/TiltLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class TiltLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( object: Group ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
parse( data: ArrayBuffer ): Group;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Group>;
parse( data: ArrayBuffer ): Group;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/VOXLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ export class VOXLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( chunks: Array<object> ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ): void;
parse( data: ArrayBuffer ): Array<object>;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Array<object>>;
parse( data: ArrayBuffer ): Array<object>;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/VRMLLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class VRMLLoader extends Loader {
constructor( manager?: LoadingManager );

load( url: string, onLoad: ( scene: Scene ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
parse( data: string, path: string ) : Scene;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<Scene>;
parse( data: string, path: string ) : Scene;

}
3 changes: 1 addition & 2 deletions examples/jsm/loaders/VRMLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ export class VRMLoader extends Loader {
gltfLoader: GLTFLoader;

load( url: string, onLoad: ( scene: GLTF ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<GLTF>;
parse( gltf: GLTF, onLoad: ( scene: GLTF ) => void ): void;
setDRACOLoader( dracoLoader: DRACOLoader ): this;

loadAsync( url: string, onProgress?: ( event: ProgressEvent ) => void ): Promise<GLTF>;

}
Loading

0 comments on commit fb55cdb

Please sign in to comment.