What problem does it solve? Writing complex TypeScript code 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 build type-safe libraries, APIs, and applications. ## 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 ready-to-adapt implementations of typed event emitters, type-safe API clients, builder patterns with compile-time completeness checks, deep readonly/partial types, form validation, and discriminated-union state machines. - Type Inference & Testing: Explains type guards, assertion functions, the infer keyword, and type-level unit testing with assertion helpers. - Use Case: When building a REST API client, use the endpoint-config pattern to get fully typed request parameters, bodies, and responses for every route and HTTP method. ## Quick Start Ask the AI to help you implement a type-safe event emitter or generic utility type in TypeScript using the advanced types skill.