Skip to content

@loontail/minecraft-kit v0.8.14 / AspectRepairInput

Type alias: AspectRepairInput

ts
type AspectRepairInput: {
  cache: MetadataCache;
  from: VerificationResult | readonly VerificationResult[];
  http: HttpClient;
  shouldRepairIssue: RepairIssueFilter;
  signal: AbortSignal;
  target: Target;
};

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

Example

ts
import type { AspectRepairInput } from "@loontail/minecraft-kit";

// The kit wraps this for you — callers usually only see `target` and `from`:
const verification = await kit.verify.fabric.run(target);
const plan = await kit.repair.fabric.plan(target, { from: verification });

Type declaration

MemberType
cacheMetadataCache
fromVerificationResult | readonly VerificationResult[]
httpHttpClient
shouldRepairIssueRepairIssueFilter
signalAbortSignal
targetTarget

Source

src/types/repair.ts:128

MIT License