Appearance
@loontail/minecraft-kit v0.8.14 / VerifyAndRepairInput
Type alias: VerifyAndRepairInput
ts
type VerifyAndRepairInput: {
aspect: VerificationKind;
mode: RepairMode;
onEvent: ProgressListener;
signal: AbortSignal;
target: Target;
};Inputs to kit.repair.runVerifyAndRepair({ aspect, target, mode? }). Runs a single aspect's verifier and, in 'fix' mode, plans + executes the repair for any issues it finds. In 'report' mode the function never writes to disk.
Example
ts
import type { VerifyAndRepairInput } from "@loontail/minecraft-kit";
const input: VerifyAndRepairInput = { aspect: "minecraft", target };
const { verified, repair } = await kit.repair.runVerifyAndRepair(input);Type declaration
| Member | Type |
|---|---|
aspect | VerificationKind |
mode | RepairMode |
onEvent | ProgressListener |
signal | AbortSignal |
target | Target |