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

The Iron Rule

Installs
14
GitHub Stars
2
First Seen
Feb 3, 2026
type-vs-interface — marius-townhouse/effective-typescript-skills