fix: Missing PrestigeDef and LootDrop type definitions
#23
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
Files:
src/lib/game/constants/prestige.ts(line 2) — importsPrestigeDeffrom'../types'but it's not definedsrc/lib/game/data/loot-drops.ts(line 3) — importsLootDropfrom'../types'but it's not definedProblem: Both
PrestigeDefandLootDropare imported from../types(the types barrel), but neither type is defined in any file undersrc/lib/game/types/. This will cause TypeScript compilation errors.Impact:
PRESTIGE_DEFandLOOT_DROPSrecords are untyped. Any property access on prestige upgrades or loot drops has no type checking.Fix: Add both types to
src/lib/game/types/game.ts(or a new dedicated file) and re-export fromtypes/index.ts:Starting work on Missing PrestigeDef and LootDrop type definitions
Fixed: Added PrestigeDef and LootDrop interfaces to game.ts and re-exported from types/index.ts