Skip to content

@loontail/minecraft-kit v0.8.14 / LaunchPreflightResult

Type alias: LaunchPreflightResult

ts
type LaunchPreflightResult: {
  missing: readonly string[];
  ok: boolean;
};

Result of a network-free kit.launch.preflight(target) check.

Example

ts
import type { LaunchPreflightResult } from "@loontail/minecraft-kit";

const preflight: LaunchPreflightResult = await kit.launch.preflight(target);
if (!preflight.ok) console.warn(`cannot launch — missing:\n${preflight.missing.join("\n")}`);

Type declaration

MemberTypeDescription
missingreadonly string[]Absolute paths of the launch-critical files that are missing (empty when ok).
okbooleanTrue when every launch-critical file is present on disk.

Source

src/types/launch.ts:108

MIT License