Incomplete Type Coverage
Problem
While EmmyLua type annotations exist, coverage is incomplete across the codebase.
Issues
- Not all functions have
@paramand@returnannotations - Some complex types lack proper definitions
- Internal helper functions often lack type documentation
Benefits of Complete Coverage
- Better IDE autocompletion and IntelliSense
- Catch type errors early during development
- Improved code documentation
- Easier for contributors to understand interfaces
Recommended Approach
- Add type annotations to all public functions
- Document complex data structures in types/mtoc.lua
- Consider using lua-language-server for validation
Priority
Code Quality - Improves developer experience
Related
Part of the gaps analysis - see GAPS_ANALYSIS.md