Built idea · Aug 2, 2026
Type Witness
A browser-based TypeScript type inference visualizer that shows, step by step, how the compiler resolves types through each expression -- like a slow-motion replay of the type checker.
What it does
Explains, step by step, how TypeScript works out the types in your code. Paste a snippet and it walks through each decision the compiler makes: why a value got a narrow or a wide type, what a generic function was filled in with, how a callback's parameters were inferred, and where a check narrowed a value. Errors appear right after the step where inference went wrong, and you can hover any expression to see its exact type. It uses the real compiler and runs in your browser, so nothing you paste is uploaded. Limitation: the first visit is a large download, about 1 MB.