What problem does it solve?
Advanced TypeScript features and inconsistent compiler configurations cause subtle runtime bugs, fragile public APIs, and poor developer ergonomics; this skill standardizes type design, validation, and compiler setup to prevent those issues and improve long-term maintainability.
Core Features & Use Cases
- Type system design: Create branded types, advanced generics, conditional and mapped types, and utility types to express domain invariants.
- Type safety enforcement: Provide type guards, discriminated unions, assertion functions, exhaustive checks, and patterns that eliminate unsafe any casts.
- Build & configuration guidance: Recommend and generate strict tsconfig settings, project references, incremental builds, and declaration file strategies for libraries and monorepos.
- Full-stack and tRPC integration: Ensure end-to-end type safety across client, server, and tRPC APIs with declaration generation and API-first type modeling.
- Use Case: Convert a mixed JS/TS monorepo into a strongly typed library set with branded IDs, exhaustive state machines, and a shared tsconfig that produces accurate .d.ts bundles.
Quick Start
Run a repository audit for strict compiler flags, generate branded types and type guards for public APIs, and produce a recommended tsconfig and declaration settings.