TypeScript Review
A review skill that ensures your TypeScript code delivers on its promise of type safety rather than just adding syntax overhead.
What it covers
- Strict mode compliance — noUncheckedIndexedAccess, strictNullChecks, no implicit any
- Generic patterns — proper constraints, inference-friendly signatures, avoiding over-generalization
- Type narrowing — discriminated unions, exhaustive switch/case, type guards over assertions
- Anti-patterns — any/unknown misuse, excessive type casting, non-null assertions as band-aids
- Module boundaries — explicit return types on public APIs, branded types for domain concepts
When to use
Run this on any TypeScript project, particularly after adding new modules or when reviewers frequently catch type-related issues. Essential for shared libraries where consumers depend on accurate types.