What problem does it solve? Writing complex TypeScript logic without losing compile-time type safety is hard: developers often fall back to any, duplicate type definitions, or miss type narrowing opportunities. This Skill provides patterns and reference implementations for TypeScript's advanced type system so you can build type-safe libraries, API clients, and state machines. ## 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, builders with compile-time completeness checks, deep readonly/partial utilities, form validators, and discriminated-union state machines. - Type Inference & Testing: Type guards, assertion functions, and type-level assertion helpers for verifying type behavior. - Use Case: When building a typed API client, use the endpoint-config pattern to get fully inferred request params, bodies, and response types per route and HTTP method. ## Quick Start Ask the AI to implement a type-safe event emitter or API client in TypeScript using generics and conditional types.