What problem does it solve? Writing complex TypeScript type logic without guidance leads to unsafe casts, overuse of any, and missed compile-time guarantees. This Skill provides patterns and reference implementations for building type-safe libraries, API clients, and validation systems. ## Core Features & Use Cases - Advanced Type Patterns: Covers generics with constraints, conditional types with infer, mapped types with key remapping, and template literal types for string manipulation. - Production Patterns: Includes type-safe event emitters, API clients, builders with required-field enforcement, deep readonly/partial utilities, form validators, and discriminated union state machines. - Type Inference & Testing: Demonstrates type guards, assertion functions, the infer keyword, and compile-time type assertion tests. - Use Case: When building a typed API client where each endpoint has distinct params, body, and response shapes, use the EndpointConfig pattern to get full autocomplete and compile-time errors on every request. ## Quick Start Ask the AI to implement a type-safe event emitter or deep readonly utility for your TypeScript interfaces using the advanced types skill.