type-display-attention
Installation
SKILL.md
Pay Attention to How Types Display
Overview
The types you write are not just for the compiler - they're also for developers reading code in their IDE. Complex types can display as unwieldy expansions that obscure meaning and hurt developer experience. Understanding how to control type display helps you create types that are both correct and readable.
Type display matters for debugging, API usability, and overall developer productivity. A type that works correctly but displays poorly creates friction.
When to Use This Skill
- Complex types display poorly in hover tooltips
- Users see expanded instead of named types
- Debugging confusing type errors
- Building public APIs with generic types
- Types become deeply nested or recursive
The Iron Rule
Control how types display using type aliases and identity mapped types. Ensure your types are readable in IDE tooltips and error messages.