Refactor: How to clean up confusing/duplicate type definitions in spac...
Documentation for Sessions
♻️ Refactor: How to clean up confusing/duplicate type definitions in spac...
📋 Decision Context
Question:
How to clean up confusing/duplicate type definitions in space.types.ts (formerly multiverse.types.ts)?
Task: Session 32.2: Clean up unused types from space.types.ts
🎯 Decision Made
Chosen:
Removed unused interfaces: Planet, Module, PlanetReference, ModuleMarketplaceListing, UniverseTemplate, GalaxyTemplate, PlanetTemplate. Renamed file from multiverse.types.ts to space.types.ts. Updated header documentation to clarify the hierarchy.
Options Considered:
- Deprecate with @deprecated tags
- Remove entirely
- Rename to avoid confusion
💭 Reasoning
These types were creating confusion: Planet duplicated World/Page, Module duplicated UniversalModule, template types duplicated those in structure-management/templates/universe-templates.ts. Grep searches confirmed none were imported/used anywhere in the codebase. Removing them eliminates confusion for AI agents learning the codebase.
📁 Files Involved
libs/libs-foundational/core-models/src/lib/types/space.types.tslibs/libs-foundational/core-models/src/lib/types/index.ts
🔗 Related
- Decision ID:
dev_1767977277195_l23f6yk - Session: 31
- Workspace: editor2
Auto-generated by MCP Smart Consolidation