What problem does it solve? Writing complex TypeScript logic without losing compile-time type safety is hard: reusable utilities, API clients, and form validators often fall back to any, which hides bugs until runtime. This Skill provides patterns and reference implementations for TypeScript's advanced type system so type errors are caught at compile time. ## Core Features & Use Cases - Advanced Type Patterns: Generics with constraints, conditional types with infer, mapped types with key remapping, and template literal types for string manipulation. - Production Patterns: Type-safe event emitters, API clients with typed endpoints, builder patterns with compile-time completeness checks, deep readonly/partial utilities, discriminated union state machines, and form validation. - Type Inference & Testing: Type guards, assertion functions, and type-level assertion helpers to verify type behavior. - Use Case: When building a typed API client where each endpoint has distinct params, body, and response shapes, use the conditional-type endpoint config pattern so incorrect request bodies fail at compile time. ## Quick Start Ask the AI to create a type-safe event emitter in TypeScript where each event name maps to a specific payload type using generics and mapped types.