Appearance
@loontail/minecraft-kit / RepairSurface
Type Alias: RepairSurface
ts
type RepairSurface = {
fabric: RepairAspectSurface;
forge: RepairAspectSurface;
minecraft: RepairAspectSurface;
runtime: RepairAspectSurface;
all: Promise<RepairAllReport>;
fromError: Promise<RepairPlan>;
verifyAndRepair: Promise<VerifyAndRepairResult>;
};Defined in: src/kit/repair-aspect.ts:102
Shape of kit.repair. Four aspect-specific surfaces plus the all convenience that verifies every applicable slice and repairs each broken one, and fromError which resumes a failed install by deriving a focused plan from a typed MinecraftKitError.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
fabric | readonly | RepairAspectSurface | src/kit/repair-aspect.ts:104 |
forge | readonly | RepairAspectSurface | src/kit/repair-aspect.ts:105 |
minecraft | readonly | RepairAspectSurface | src/kit/repair-aspect.ts:103 |
runtime | readonly | RepairAspectSurface | src/kit/repair-aspect.ts:106 |
Methods
all()
ts
all(target, options?): Promise<RepairAllReport>;Defined in: src/kit/repair-aspect.ts:107
Parameters
| Parameter | Type |
|---|---|
target | Target |
options? | RepairAllRunOptions |
Returns
Promise<RepairAllReport>
fromError()
ts
fromError(input): Promise<RepairPlan>;Defined in: src/kit/repair-aspect.ts:108
Parameters
| Parameter | Type |
|---|---|
input | RepairFromErrorInput |
Returns
Promise<RepairPlan>
verifyAndRepair()
ts
verifyAndRepair(input): Promise<VerifyAndRepairResult>;Defined in: src/kit/repair-aspect.ts:109
Parameters
| Parameter | Type |
|---|---|
input | VerifyAndRepairInput |
Returns
Promise<VerifyAndRepairResult>