fix: Missing ManaType type export from elements.ts breaks discipline type safety
#22
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/types/elements.tsProblem:
disciplines.tsimportsManaTypefrom./elements, butelements.tsdoes not export anyManaTypetype. This meansDisciplineDefinition.manaTypehas no type safety — it's implicitlyany. Every discipline data file referencesmanaType: ManaTypewhich will be untyped.Impact: All discipline mana types are untyped. Any typo or invalid mana type string will go undetected at compile time.
Fix: Add the
ManaTypetype toelements.ts:Then re-export it from
types/index.ts.Starting work on Missing ManaType type export from elements.ts
Fixed: Added ManaType type export to elements.ts and re-exported from types/index.ts