Skip to content

@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

PropertyModifierTypeDefined in
fabricreadonlyRepairAspectSurfacesrc/kit/repair-aspect.ts:104
forgereadonlyRepairAspectSurfacesrc/kit/repair-aspect.ts:105
minecraftreadonlyRepairAspectSurfacesrc/kit/repair-aspect.ts:103
runtimereadonlyRepairAspectSurfacesrc/kit/repair-aspect.ts:106

Methods

all()

ts
all(target, options?): Promise<RepairAllReport>;

Defined in: src/kit/repair-aspect.ts:107

Parameters

ParameterType
targetTarget
options?RepairAllRunOptions

Returns

Promise<RepairAllReport>


fromError()

ts
fromError(input): Promise<RepairPlan>;

Defined in: src/kit/repair-aspect.ts:108

Parameters

ParameterType
inputRepairFromErrorInput

Returns

Promise<RepairPlan>


verifyAndRepair()

ts
verifyAndRepair(input): Promise<VerifyAndRepairResult>;

Defined in: src/kit/repair-aspect.ts:109

Parameters

ParameterType
inputVerifyAndRepairInput

Returns

Promise<VerifyAndRepairResult>

MIT License