Skip to content

@loontail/minecraft-kit / RepairAllReport

Type Alias: RepairAllReport

ts
type RepairAllReport = {
  blockedAspects: ReadonlyMap<VerificationKind, RepairBlockedAspect>;
  bytesDownloaded: number;
  durationMs: number;
  installPlan: InstallPlan | null;
  repairs: ReadonlyMap<VerificationKind, RepairReport>;
  verifications: readonly VerificationResult[];
};

Defined in: src/repair/all.ts:74

Result of repairAll: every verification it ran, every repair it performed, every aspect a connectivity failure blocked, and the aggregate cost.

Example

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

const report: RepairAllReport = await kit.repair.all(target);
console.log(`verified ${report.verifications.length} aspects`);
console.log(`repaired ${report.repairs.size}, blocked ${report.blockedAspects.size}`);

Properties

PropertyModifierTypeDescriptionDefined in
blockedAspectsreadonlyReadonlyMap<VerificationKind, RepairBlockedAspect>Aspects skipped because their repair needs the network and it was unreachable.src/repair/all.ts:79
bytesDownloadedreadonlynumber-src/repair/all.ts:80
durationMsreadonlynumber-src/repair/all.ts:81
installPlanreadonlyInstallPlan | nullThe single install plan every repaired aspect was derived from, or null when nothing needed repairing (or planning was blocked). Returned so a caller that has more work to do on the same target — re-running Forge processors, re-checking launchability — can reuse it instead of paying for another install.plan, which for Forge means another installer fetch and maven/ flush.src/repair/all.ts:89
repairsreadonlyReadonlyMap<VerificationKind, RepairReport>Present only for aspects that actually needed work.src/repair/all.ts:77
verificationsreadonlyreadonly VerificationResult[]-src/repair/all.ts:75

MIT License