Skip to content

@loontail/minecraft-kit / RepairableErrorLike

Type Alias: RepairableErrorLike

ts
type RepairableErrorLike = {
  code: MinecraftKitErrorCode;
  context: Readonly<MinecraftKitErrorContext>;
};

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

Structural shape of the MinecraftKitError passed to RepairFromErrorInput. Defined here so src/types/ does not need to import the error class from src/core/. Any thrown MinecraftKitError satisfies this shape.

Properties

PropertyModifierTypeDefined in
codereadonlyMinecraftKitErrorCodesrc/types/repair.ts:125
contextreadonlyReadonly<MinecraftKitErrorContext>src/types/repair.ts:126

MIT License