Appearance
@loontail/minecraft-kit / RepairBlockedAspect
Type Alias: RepairBlockedAspect
ts
type RepairBlockedAspect = {
code: MinecraftKitErrorCode;
message: string;
};Defined in: src/repair/all.ts:56
Why an aspect could not be repaired this run. Recorded by repairAll when planning or running a repair fails with a connectivity error, so an offline "Repair" degrades to "these aspects still need the network" instead of rejecting the whole operation.
Example
ts
const report = await kit.repair.all(target);
for (const [aspect, blocker] of report.blockedAspects) {
console.warn(`${aspect} could not be repaired offline: ${blocker.message}`);
}Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
code | readonly | MinecraftKitErrorCode | src/repair/all.ts:57 |
message | readonly | string | src/repair/all.ts:58 |