Appearance
@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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
blockedAspects | readonly | ReadonlyMap<VerificationKind, RepairBlockedAspect> | Aspects skipped because their repair needs the network and it was unreachable. | src/repair/all.ts:79 |
bytesDownloaded | readonly | number | - | src/repair/all.ts:80 |
durationMs | readonly | number | - | src/repair/all.ts:81 |
installPlan | readonly | InstallPlan | null | The 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 |
repairs | readonly | ReadonlyMap<VerificationKind, RepairReport> | Present only for aspects that actually needed work. | src/repair/all.ts:77 |
verifications | readonly | readonly VerificationResult[] | - | src/repair/all.ts:75 |