Appearance
@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
| Member | Type | Description |
|---|---|---|
missing | readonly string[] | Absolute paths of the launch-critical files that are missing (empty when ok). |
ok | boolean | True when every launch-critical file is present on disk. |