type-vs-interface
Installation
SKILL.md
Know the Differences Between type and interface
Overview
Use interface for object types, type for everything else.
Both type and interface can define object types, but they have different capabilities. Understanding these differences helps you choose the right tool and write consistent code.
When to Use This Skill
- Defining any named type
- Choosing between type alias and interface
- Extending or composing types
- Working with declaration files
- Understanding library type definitions