Skip to main content
/images/logos/typenarrow-typescript-type-refinement-suggestion-tool.png

TypeNarrow

Suggest tighter TypeScript types by analyzing runtime value patterns

Code & Development
TypeNarrow logo

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
#typescript#type-safety#static-analysis#refactoring

Get Started

Visit TypeNarrow
🔵
Freemium
Free plan + paid upgrades

Quick Info

Category
Code & Development
Pricing
Freemium

More Code & Development Tools