Inspecting TypeScript's inferred types

How to inspect and understand TypeScript inferred types