Skip to content

@loontail/minecraft-kit v0.8.14 / InstallAction

Type alias: InstallAction

ts
type InstallAction: 
  | DownloadAction
  | ExtractNativeAction
  | RunForgeProcessorAction
  | WriteVersionJsonAction
  | WriteLoggingConfigAction;

Discriminated union of install actions.

Example

ts
import { InstallActionKinds, type InstallAction } from "@loontail/minecraft-kit";

const onlyDownloads = (actions: readonly InstallAction[]): readonly InstallAction[] =>
  actions.filter((a) => a.kind === InstallActionKinds.DOWNLOAD_FILE);

Source

src/types/install.ts:248

MIT License