What problem does it solve? Writing complex TypeScript logic without losing compile-time type safety is hard: generic APIs, dynamic event payloads, and nested configuration objects often force developers into unsafe any casts. This Skill provides patterns and reference implementations for TypeScript's advanced type system so type errors are caught at compile time instead of runtime. ## Core Features & Use Cases - Advanced Type Patterns: Covers generics with constraints, conditional types with infer, mapped types with key remapping, template literal types, and all built-in utility types. - Production Patterns: Includes type-safe event emitters, API clients, builder patterns, deep readonly/partial types, form validation, 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 different params, body, and response shapes, apply the endpoint-config mapped type pattern so every request() call is fully type-checked. ## Quick Start Ask the AI to design a type-safe event emitter or API client in TypeScript using generics and conditional types from this Skill.