type-vs-interface
CommunityChoose between type and interface with clarity
Authorluyi985
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers decide when to use TypeScript interfaces versus type aliases, reducing confusion and inconsistencies in type design.
Core Features & Use Cases
- Clear guidance on object types vs non-object types, with rules for when to prefer interface or type.
- Practical decision scenarios for API surfaces, component props, and library declarations.
- Quick comparisons of declaration merging, unions, tuples, and mapped types to inform coding standards.
Quick Start
Decide, in your codebase, to use interface for object shapes that can be extended and type for unions, tuples, and mapped types.
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: type-vs-interface Download link: https://github.com/luyi985/lyi-bash/archive/main.zip#type-vs-interface 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.