typescript

Installation
SKILL.md

Critical Patterns

Const Types Pattern (REQUIRED)

// ✅ ALWAYS: Create const object first, then extract type
const STATUS = {
  ACTIVE: "active",
  INACTIVE: "inactive",
  PENDING: "pending",
} as const;

type Status = (typeof STATUS)[keyof typeof STATUS];

// ❌ NEVER: Direct union types
type Status = "active" | "inactive" | "pending";

Flat Interfaces (REQUIRED)

Related skills
Installs
7
GitHub Stars
1
First Seen
Jan 26, 2026