Skip to content

@loontail/minecraft-kit v0.8.14 / VerifyAndRepairResult

Type alias: VerifyAndRepairResult

ts
type VerifyAndRepairResult: {
  repair: RepairReport | null;
  verified: VerificationResult;
};

Result of kit.repair.runVerifyAndRepair. verified is always the verification result; repair is the repair report when a fix ran, or null when nothing needed fixing or mode === RepairModes.REPORT.

Example

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

const result: VerifyAndRepairResult = await kit.repair.runVerifyAndRepair({
  aspect: "runtime",
  target,
});
if (result.repair !== null) console.log(`fixed ${result.repair.actionsCompleted} files`);

Type declaration

MemberType
repairRepairReport | null
verifiedVerificationResult

Source

src/types/repair.ts:277

MIT License