Skip to content

@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

PropertyModifierTypeDefined in
categoryreadonlyDownloadCategorysrc/types/install.ts:87
expectedSha1?readonlystringsrc/types/install.ts:85
expectedSize?readonlynumbersrc/types/install.ts:86
kindreadonlytypeof DOWNLOAD_FILEsrc/types/install.ts:82
targetreadonlystringsrc/types/install.ts:84
urlreadonlystring | readonly string[]src/types/install.ts:83

MIT License