Appearance
@loontail/minecraft-kit v0.8.14 / RepairModes
Variable: RepairModes
ts
const RepairModes: {
FIX: "fix";
REPORT: "report";
};Modes accepted by kit.repair.runVerifyAndRepair.
'fix' (default) — when verification surfaces issues, plan and execute the repair, then return both the verification and the resulting repair report.
'report' — only run verification; never touch disk. The returned repair is always null. Useful for UIs that show the diagnosis first and ask the user before fixing.
Example
ts
import { RepairModes } from "@loontail/minecraft-kit";
const { verified, repair } = await kit.repair.runVerifyAndRepair({
aspect: "minecraft",
target,
mode: RepairModes.REPORT,
});
if (!verified.isValid) askUserBeforeFixing(verified.issues);Type declaration
| Member | Type | Value |
|---|---|---|
FIX | "fix" | "fix" |
REPORT | "report" | "report" |