TypeNarrow
Suggest tighter TypeScript types by analyzing runtime value patterns
TypeNarrow
Suggest tighter TypeScript types by analyzing runtime value patterns
TypeNarrow analyzes TypeScript codebases to find overly broad types like any, unknown, string, and number that could be narrowed to literal types, branded types, or discriminated unions based on actual usage patterns. The tool traces value flows through functions to determine the tightest possible type at each point and generates codemods to apply the refinements. Teams use it to incrementally improve type safety in codebases that started with loose typing.
Key Features
- ✓Broad type detection
- ✓Value flow tracing
- ✓Codemod generation
- ✓Literal type suggestions
- ✓Discriminated union refactoring
Quick Info
- Category
- Code & Development
- Pricing
- Freemium
More Code & Development Tools
GitHub Copilot
Code & DevelopmentThe AI pair programmer trusted by millions of developers
Cursor
Code & DevelopmentThe code editor built around AI from the ground up
Tabnine
Code & DevelopmentPrivacy-first AI code completion
Codeium
Code & DevelopmentFree AI coding assistant with no usage limits