Skip to content

@loontail/minecraft-kit / RepairFromErrorInput

Type Alias: RepairFromErrorInput

ts
type RepairFromErrorInput = {
  error: RepairableErrorLike;
  signal?: AbortSignal;
  target: Target;
};

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

Inputs to kit.repair.fromError({ error, target }). Resume a failed install by deriving the smallest possible RepairPlan from a typed MinecraftKitError thrown by a previous kit.install.run (or any other operation that surfaces the same codes).

Properties

PropertyModifierTypeDefined in
errorreadonlyRepairableErrorLikesrc/types/repair.ts:177
signal?readonlyAbortSignalsrc/types/repair.ts:179
targetreadonlyTargetsrc/types/repair.ts:178

MIT License