未验证 提交 9c12e746 编写于 作者: M Michael Herzog 提交者: GitHub

Merge pull request #17985 from f-a24/dev

Update .d.ts for loaders
......@@ -8,10 +8,10 @@ export class AnimationLoader extends Loader {
load(
url: string,
onLoad?: ( response: string | ArrayBuffer ) => void,
onLoad: ( response: AnimationClip[] ) => void,
onProgress?: ( request: ProgressEvent ) => void,
onError?: ( event: ErrorEvent ) => void
): any;
): void;
parse( json: any ): AnimationClip[];
}
......@@ -7,9 +7,9 @@ export class AudioLoader extends Loader {
load(
url: string,
onLoad: Function,
onPrgress: Function,
onError: Function
onLoad: ( audioBuffer: AudioBuffer ) => void,
onProgress?: ( request: ProgressEvent ) => void,
onError?: ( event: ErrorEvent ) => void
): void;
}
import { Loader } from './Loader';
import { LoadingManager } from './LoadingManager';
import { BufferGeometry } from './../core/BufferGeometry';
import { InstancedBufferGeometry } from '../core/InstancedBufferGeometry';
export class BufferGeometryLoader extends Loader {
......@@ -8,10 +9,10 @@ export class BufferGeometryLoader extends Loader {
load(
url: string,
onLoad: ( bufferGeometry: BufferGeometry ) => void,
onProgress?: ( event: any ) => void,
onError?: ( event: any ) => void
onLoad: ( bufferGeometry: InstancedBufferGeometry | BufferGeometry ) => void,
onProgress?: ( request: ProgressEvent ) => void,
onError?: ( event: ErrorEvent ) => void
): void;
parse( json: any ): BufferGeometry;
parse( json: any ): InstancedBufferGeometry | BufferGeometry;
}
......@@ -10,7 +10,7 @@ export class ImageBitmapLoader extends Loader {
setOptions( options: object ): ImageBitmapLoader;
load(
url: string,
onLoad?: ( response: string | ArrayBuffer ) => void,
onLoad?: ( response: ImageBitmap ) => void,
onProgress?: ( request: ProgressEvent ) => void,
onError?: ( event: ErrorEvent ) => void
): any;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册