Appearance
@loontail/minecraft-kit / DownloadAction
Type Alias: DownloadAction
ts
type DownloadAction = {
category: DownloadCategory;
expectedSha1?: string;
expectedSize?: number;
kind: typeof DOWNLOAD_FILE;
target: string;
url: string | readonly string[];
};Defined in: src/types/install.ts:81
A single download step.
url accepts either a single string or a readonly string[] of mirror URLs that the runner tries in order. Each URL gets a full retry budget; the next URL is only consulted when the previous one's retries are exhausted. Pass a single string for the common single-source case — the runner will treat it identically to a one-element array. For display, use the first array entry; progress events report the URL currently being fetched.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
category | readonly | DownloadCategory | src/types/install.ts:87 |
expectedSha1? | readonly | string | src/types/install.ts:85 |
expectedSize? | readonly | number | src/types/install.ts:86 |
kind | readonly | typeof DOWNLOAD_FILE | src/types/install.ts:82 |
target | readonly | string | src/types/install.ts:84 |
url | readonly | string | readonly string[] | src/types/install.ts:83 |