typescript-interface-vs-type
Installation
SKILL.md
TypeScript: Interface vs Type
Core Principle
Use interface until you need features from type.
This is the official TypeScript recommendation from the TypeScript Handbook.
When to Use Interface
Use interface for:
- Object type definitions
- Extending other object types
- Class implementations
- Declaration merging (augmenting existing types)