babylonjs-loaders 7.10.1 → 7.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2326,7 +2326,7 @@ declare module BABYLON.GLTF2 {
2326
2326
  /** @internal */
2327
2327
  export interface IAnimationTargetInfo {
2328
2328
  /** @internal */
2329
- target: any;
2329
+ target: unknown;
2330
2330
  /** @internal */
2331
2331
  properties: Array<BABYLON.GLTF2.AnimationPropertyInfo>;
2332
2332
  }
@@ -2335,7 +2335,7 @@ declare module BABYLON.GLTF2 {
2335
2335
  */
2336
2336
  export class GLTFLoader implements IGLTFLoader {
2337
2337
  /** @internal */
2338
- readonly _completePromises: Promise<any>[];
2338
+ readonly _completePromises: Promise<unknown>[];
2339
2339
  /** @internal */
2340
2340
  _assetContainer: Nullable<AssetContainer>;
2341
2341
  /** Storage */
@@ -2406,7 +2406,7 @@ declare module BABYLON.GLTF2 {
2406
2406
  /**
2407
2407
  * @internal
2408
2408
  */
2409
- importMeshAsync(meshesNames: any, scene: Scene, container: Nullable<AssetContainer>, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
2409
+ importMeshAsync(meshesNames: string | readonly string[] | null | undefined, scene: Scene, container: Nullable<AssetContainer>, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
2410
2410
  /**
2411
2411
  * @internal
2412
2412
  */
@@ -2589,7 +2589,7 @@ declare module BABYLON.GLTF2 {
2589
2589
  /**
2590
2590
  * @internal
2591
2591
  */
2592
- _createTextureAsync(context: string, sampler: BABYLON.GLTF2.Loader.ISampler, image: BABYLON.GLTF2.Loader.IImage, assign?: (babylonTexture: BaseTexture) => void, textureLoaderOptions?: any, useSRGBBuffer?: boolean): Promise<BaseTexture>;
2592
+ _createTextureAsync(context: string, sampler: BABYLON.GLTF2.Loader.ISampler, image: BABYLON.GLTF2.Loader.IImage, assign?: (babylonTexture: BaseTexture) => void, textureLoaderOptions?: unknown, useSRGBBuffer?: boolean): Promise<BaseTexture>;
2593
2593
  private _loadSampler;
2594
2594
  /**
2595
2595
  * Loads a glTF image.
@@ -2652,7 +2652,7 @@ declare module BABYLON.GLTF2 {
2652
2652
  * @param actionAsync The action to run
2653
2653
  * @returns The promise returned by actionAsync or null if the extension does not exist
2654
2654
  */
2655
- static LoadExtensionAsync<TExtension = any, TResult = void>(context: string, property: BABYLON.GLTF2.IProperty, extensionName: string, actionAsync: (extensionContext: string, extension: TExtension) => Nullable<Promise<TResult>>): Nullable<Promise<TResult>>;
2655
+ static LoadExtensionAsync<TExtension = unknown, TResult = void>(context: string, property: BABYLON.GLTF2.IProperty, extensionName: string, actionAsync: (extensionContext: string, extension: TExtension) => Nullable<Promise<TResult>>): Nullable<Promise<TResult>>;
2656
2656
  /**
2657
2657
  * Helper method called by a loader extension to load a glTF extra.
2658
2658
  * @param context The context when loading the asset
@@ -2661,7 +2661,7 @@ declare module BABYLON.GLTF2 {
2661
2661
  * @param actionAsync The action to run
2662
2662
  * @returns The promise returned by actionAsync or null if the extra does not exist
2663
2663
  */
2664
- static LoadExtraAsync<TExtra = any, TResult = void>(context: string, property: BABYLON.GLTF2.IProperty, extensionName: string, actionAsync: (extraContext: string, extra: TExtra) => Nullable<Promise<TResult>>): Nullable<Promise<TResult>>;
2664
+ static LoadExtraAsync<TExtra = unknown, TResult = void>(context: string, property: BABYLON.GLTF2.IProperty, extensionName: string, actionAsync: (extraContext: string, extra: TExtra) => Nullable<Promise<TResult>>): Nullable<Promise<TResult>>;
2665
2665
  /**
2666
2666
  * Checks for presence of an extension.
2667
2667
  * @param name The name of the extension to check
@@ -3235,7 +3235,7 @@ declare module BABYLON {
3235
3235
  }
3236
3236
  /** @internal */
3237
3237
  export interface IGLTFLoader extends IDisposable {
3238
- importMeshAsync: (meshesNames: any, scene: Scene, container: Nullable<AssetContainer>, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<ISceneLoaderAsyncResult>;
3238
+ importMeshAsync: (meshesNames: string | readonly string[] | null | undefined, scene: Scene, container: Nullable<AssetContainer>, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<ISceneLoaderAsyncResult>;
3239
3239
  loadAsync: (scene: Scene, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string) => Promise<void>;
3240
3240
  }
3241
3241
  /**
@@ -3474,20 +3474,20 @@ declare module BABYLON {
3474
3474
  /**
3475
3475
  * @internal
3476
3476
  */
3477
- loadFile(scene: Scene, fileOrUrl: File | string | ArrayBufferView, rootUrl: string, onSuccess: (data: any, responseURL?: string) => void, onProgress?: (ev: ISceneLoaderProgressEvent) => void, useArrayBuffer?: boolean, onError?: (request?: WebRequest, exception?: LoadFileError) => void, name?: string): Nullable<IFileRequest>;
3477
+ loadFile(scene: Scene, fileOrUrl: File | string | ArrayBufferView, rootUrl: string, onSuccess: (data: unknown, responseURL?: string) => void, onProgress?: (ev: ISceneLoaderProgressEvent) => void, useArrayBuffer?: boolean, onError?: (request?: WebRequest, exception?: LoadFileError) => void, name?: string): Nullable<IFileRequest>;
3478
3478
  private _loadBinary;
3479
3479
  /**
3480
3480
  * @internal
3481
3481
  */
3482
- importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
3482
+ importMeshAsync(meshesNames: string | readonly string[] | null | undefined, scene: Scene, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
3483
3483
  /**
3484
3484
  * @internal
3485
3485
  */
3486
- loadAsync(scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<void>;
3486
+ loadAsync(scene: Scene, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<void>;
3487
3487
  /**
3488
3488
  * @internal
3489
3489
  */
3490
- loadAssetContainerAsync(scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<AssetContainer>;
3490
+ loadAssetContainerAsync(scene: Scene, data: IGLTFLoaderData, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<AssetContainer>;
3491
3491
  /**
3492
3492
  * @internal
3493
3493
  */
@@ -3495,7 +3495,7 @@ declare module BABYLON {
3495
3495
  /**
3496
3496
  * @internal
3497
3497
  */
3498
- directLoad(scene: Scene, data: string): Promise<any>;
3498
+ directLoad(scene: Scene, data: string): Promise<Object>;
3499
3499
  /**
3500
3500
  * The callback that allows custom handling of the root url based on the response url.
3501
3501
  * @param rootUrl the original root url
@@ -3504,7 +3504,7 @@ declare module BABYLON {
3504
3504
  */
3505
3505
  rewriteRootURL?(rootUrl: string, responseURL?: string): string;
3506
3506
  /** @internal */
3507
- createPlugin(): ISceneLoaderPlugin | ISceneLoaderPluginAsync;
3507
+ createPlugin(): ISceneLoaderPluginAsync;
3508
3508
  /**
3509
3509
  * The loader state or null if the loader is not active.
3510
3510
  */