What problem does it solve? Writing complex TypeScript logic without deep type-system knowledge leads to unsafe any casts, duplicated type definitions, and runtime errors that the compiler could have caught. This Skill provides patterns and reference implementations for TypeScript's advanced type system so you can enforce correctness 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, builder patterns, deep readonly/partial utilities, form validation, and discriminated-union state machines. - Type Inference & Testing: Type guards, assertion functions, and compile-time type assertion helpers to verify type behavior. - Use Case: When building a type-safe API client where each endpoint has distinct params, body, and response types, use the conditional-type and infer patterns to extract and enforce those types automatically. ## Quick Start Ask the AI to help you implement a type-safe event emitter or generic utility type in TypeScript using advanced type system features.