How can I see how TypeScript computes types? : <p>Problem: I'm working on a file that has a lot of conditional types that derive their types from previously defined conditional types and this has become very complex and difficult to debug how a type is being derived.</p>

<p>I'm trying to find a way to "debug" or list how the TypeScript compiler is making its determination on a conditional type and picking a path to derive the ultimate type.</p>

<p>I've looked through the <a href="https://www.typescriptlang.org/docs/handbook/compiler-options.html" rel="noreferrer">compiler options</a> and have not found anything in that area yet...</p>

<p>An analogy to what I'm looking for right now is the equivalent of the <code>DEBUG=express:*</code> type of setting that one might use if you wanted to see what an express server was doing.</p>

<p>However, the actual problem I'm trying to solve is to be able to deconstruct and debug how a type is derived in a large complex hierarchical type definition.</p>

<p>Important Note: I'm not trying to debug the runtime execution of TypeScript project. I'm trying to debug how the types are computed by the TypeScript compiler.</p>
