typescript-interface-vs-type
CommunityChoose the right TS construct for object types.
Software Engineering#typescript#best-practices#interface#type#type-alias#declaration-merging#object-shapes
Authorflpbalada
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps developers decide when to use TypeScript's interface vs type alias for object modeling, improving type extensibility and readability.
Core Features & Use Cases
- Determine when to prefer interface for object definitions, extending objects, and declaration merging.
- Determine when to prefer type for unions, mapped types, and complex type expressions.
- Real-world use case: modeling API responses or domain models with clear extensibility and compatibility with existing libraries.
Quick Start
Ask the AI to classify a given object type as interface or type and justify the choice.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: typescript-interface-vs-type Download link: https://github.com/flpbalada/my-opencode-config/archive/main.zip#typescript-interface-vs-type Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.