typescript-advanced
Installation
SKILL.md
TypeScript Advanced Types
Comprehensive guidance for mastering TypeScript's advanced type system including generics, conditional types, mapped types, template literal types, and utility types for building robust, type-safe applications.
Quick Reference
See references/best-practices.md for practical guidelines on:
- Configuration: Essential
tsconfig.jsonsettings (strict,noUncheckedIndexedAccess,exactOptionalPropertyTypes) - Type Inference vs Explicit Types: When to annotate vs let TypeScript infer
- Interfaces vs Types: Strategic guidelines for choosing between them
- Module/Path Mapping: tsconfig paths and barrel exports patterns
- Error Handling: Custom error classes and Result pattern
- Performance: Type system performance considerations
- Type Testing:
Expect<Equal<X, Y>>patterns for compile-time type tests