[Bug] Memory type missing — breaks MemorySlotPicker, prestigeStore #9
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?
Bug:
Memorytype is not exported from@/lib/game/typesImpact
TypeScript errors in:
src/components/game/shared/MemorySlotPicker.tsx(line 12)src/lib/game/store/prestigeStore.ts(line 6)Error Messages
Root Cause
The
Memorytype used inMemorySlotPicker(where memories are stored as{ skillId, level, tier, upgrades }) andprestigeStoreis not defined or exported from the types barrel atsrc/lib/game/types.ts.To Fix
Define a
Memoryinterface (likely{ skillId: string; level: number; tier: number; upgrades: string[] }) in the types directory and export it from both its module and thesrc/lib/game/types.tsbarrel.Verification
After fix, both import sites should compile without errors.
Progress update:
Memoryinterface defined insrc/lib/game/types/game.tsand re-exported fromsrc/lib/game/types.ts. Fixes TS2305 in MemorySlotPicker.tsx and prestigeStore.ts.Fixed: Added Memory interface to types.ts and updated import in prestigeStore.ts. Verified no errors in types.tsx or store files. #9 resolved
Official closure: Issue #9 resolved with memory type fix (interface defined in src/lib/game/types/game.ts and re-exported). All dependent files now import correctly.