@cesdk/cesdk-js 1.63.0-rc.4 → 1.63.1-rc.0

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.
package/index.d.ts CHANGED
@@ -6670,13 +6670,21 @@ export declare class UtilsAPI {
6670
6670
  * accept: 'image/*',
6671
6671
  * returnType: 'blob'
6672
6672
  * });
6673
+ *
6674
+ * // Load a file as object URL (blob URL)
6675
+ * const objectURL = await cesdk.utils.loadFile({
6676
+ * accept: '.zip',
6677
+ * returnType: 'objectURL'
6678
+ * });
6679
+ * // Remember to revoke the object URL when done
6680
+ * URL.revokeObjectURL(objectURL);
6673
6681
  * ```
6674
6682
  * @public
6675
6683
  */
6676
- loadFile<T extends 'dataURL' | 'text' | 'blob' | 'arrayBuffer' | 'File'>({ accept, returnType }: {
6684
+ loadFile<T extends 'dataURL' | 'text' | 'blob' | 'arrayBuffer' | 'File' | 'objectURL'>({ accept, returnType }: {
6677
6685
  accept: string;
6678
6686
  returnType?: T;
6679
- }): Promise<T extends 'dataURL' ? string : T extends 'text' ? string : T extends 'blob' ? Blob : T extends 'arrayBuffer' ? ArrayBuffer : File>;
6687
+ }): Promise<T extends 'dataURL' ? string : T extends 'text' ? string : T extends 'blob' ? Blob : T extends 'arrayBuffer' ? ArrayBuffer : T extends 'objectURL' ? string : File>;
6680
6688
  /**
6681
6689
  * Downloads a blob or string as a file to the user's device
6682
6690
  *