Skip to content

@loontail/minecraft-kit / AspectRepairInput

Type Alias: AspectRepairInput

ts
type AspectRepairInput = {
  cache: MetadataCache;
  from:   | VerificationResult
     | readonly VerificationResult[];
  hostAllowList?: readonly string[];
  http: HttpClient;
  installPlan?: InstallPlan;
  shouldRepairIssue?: RepairIssueFilter;
  signal?: AbortSignal;
  target: Target;
};

Defined in: src/types/repair.ts:80

Inputs accepted by every aspect-specific planXxxRepair (planMinecraftRepair, planFabricRepair, planForgeRepair, planRuntimeRepair). The per-aspect input types are aliases over this shape.

Properties

PropertyModifierTypeDescriptionDefined in
cachereadonlyMetadataCache-src/types/repair.ts:84
fromreadonly| VerificationResult | readonly VerificationResult[]-src/types/repair.ts:82
hostAllowList?readonlyreadonly string[]Host allow-list for the downloads repair planning performs (the Forge installer JAR).src/types/repair.ts:88
httpreadonlyHttpClient-src/types/repair.ts:83
installPlan?readonlyInstallPlanPre-built install plan to filter instead of building a fresh one. Supplied by repair.all, which repairs several aspects from one plan — planning a Forge target is expensive (installer fetch + maven/ flush) and every aspect would otherwise pay it. Planners only read from it, never mutate it.src/types/repair.ts:95
shouldRepairIssue?readonlyRepairIssueFilter-src/types/repair.ts:86
signal?readonlyAbortSignal-src/types/repair.ts:85
targetreadonlyTarget-src/types/repair.ts:81

MIT License