Downloader: {
_cachingProfiles: Set<string>;
_abortController: AbortController | null;
_config: DownloaderConfig;
init(config?: Record<string, unknown>): void;
cacheProfile(
profileId: string,
_profile: Record<string, unknown>,
resources: DownloaderResource[],
options?: { onProgress?: (p: Record<string, unknown>) => void },
): Promise<Record<string, unknown>>;
cancelDownload(): void;
isDownloading(): boolean;
} = CacheDownloader
Type Declaration
_cachingProfiles: Set<string>
_abortController: AbortController | null
_config: DownloaderConfig
init: function
init(config?: Record<string, unknown>): void Parameters
- config: Record<string, unknown> = {}
Returns void
cacheProfile: function
cacheProfile( profileId: string, _profile: Record<string, unknown>, resources: DownloaderResource[], options?: { onProgress?: (p: Record<string, unknown>) => void },): Promise<Record<string, unknown>> Parameters
- profileId: string
- _profile: Record<string, unknown>
- resources: DownloaderResource[]
- options: { onProgress?: (p: Record<string, unknown>) => void } = {}
OptionalonProgress?: (p: Record<string, unknown>) => void
Returns Promise<Record<string, unknown>>
A summary of the run, or { error } when the profile cache is disabled.
cancelDownload: function
isDownloading: function
Returns boolean
True if downloading
Cache a complete profile