Skip to content

downloadExportedAssets

TIP

Part of Export API

Download prepared assets from the resolveExportedAssets API.

ts
declare function downloadExportedAssets<T>({
  ctx,
  items,
  concurrency = 5
}: DownloadExportedAssetsParams<T>): Promise<DownloadedAsset<T>[]>;

DownloadExportedAssetsParams

Parameters for the downloadExportedAssets API.

ts
export interface DownloadExportedAssetsParams<T> extends DownloadExportedAssetsConfig {
  ctx: ExportContext;
  items: DownloadableAsset<T>[];
}

DownloadExportedAssetsConfig

User configuration for the downloadExportedAssets API.

ts
export interface DownloadExportedAssetsConfig {
  concurrency?: number;
}

DownloadedAsset

Asset with downloaded content.

ts
export interface DownloadedAsset<T> extends DownloadableAsset<T> {
  content: string;
}

Released under the MIT License.