Skip to content

@loontail/minecraft-kit v0.8.14 / RepairAllReport

Type alias: RepairAllReport

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

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}`);

Type declaration

MemberTypeDescription
blockedAspectsReadonlyMap<VerificationKind, RepairBlockedAspect>Aspects skipped because their repair needs the network and it was unreachable.
bytesDownloadednumber-
durationMsnumber-
repairsReadonlyMap<VerificationKind, RepairReport>Present only for aspects that actually needed work.
verificationsreadonly VerificationResult[]-

Source

src/repair/all.ts:63

MIT License