fix: EquipmentCategory used but not imported in enchantments/index.ts
#24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Critical
File:
src/lib/game/data/enchantments/index.ts(lines 33, 39)Problem: The functions
getEffectsForEquipment(equipmentCategory: EquipmentCategory)andcanApplyEffect(effectId: string, equipmentCategory: EquipmentCategory)useEquipmentCategoryas a parameter type, but this type is never imported in the file. OnlyEnchantmentEffectCategoryandEnchantmentEffectDefare imported from'../enchantment-types'.Impact: TypeScript compilation error —
EquipmentCategoryis undefined in this module.Fix: Add the import:
Starting work on EquipmentCategory not imported in enchantments/index.ts
Fixed: Added missing EquipmentCategory import to enchantments/index.ts