Comprehensive TypeScript skill documentation for AI agents and developers.
This repository contains detailed guides and references for mastering TypeScript, from foundational concepts to advanced patterns for building type-safe applications and libraries.
typescript-master/
├── 1-core-concepts/ # Foundational TypeScript concepts
│ ├── generics.md
│ ├── conditional-types.md
│ ├── mapped-types.md
│ ├── template-literal-types.md
│ └── utility-types.md
├── 2-advanced-types/ # Advanced type-level programming
│ ├── branded-types.md
│ ├── conditional-types.md
│ ├── higher-kinded-types.md
│ ├── satisfies-operator.md
│ └── template-literals.md
├── 3-patterns/ # Real-world patterns
│ ├── builder-pattern.md
│ ├── deep-readonly-partial.md
│ ├── discriminated-unions.md
│ ├── form-validation.md
│ ├── type-safe-api-client.md
│ └── type-safe-event-emitter.md
├── 4-type-inference/ # Type inference techniques
│ ├── assertion-functions.md
│ ├── const-type-parameters.md
│ ├── infer-keyword.md
│ ├── inference-failure.md
│ └── type-guards.md
├── 5-best-practices/ # Guidelines and recommendations
│ ├── dos-and-donts.md
│ ├── performance.md
│ └── type-testing.md
├── 6-pitfalls/ # Common mistakes and how to avoid them
├── 7-performance/ # Type checking and build optimization
├── 8-debugging/ # Complex errors and module resolution
├── 9-migration/ # JS to TS and tool migrations
├── 10-monorepo/ # Nx, Turborepo, project references
├── 11-tooling/ # Biome, ESLint, type testing
├── 12-checklists/ # Decision trees and code review
├── references/ # Detailed reference guides
└── SKILL.md # Main skill file
Contributions welcome! Please read the documentation and follow the existing patterns.
MIT