TypeScript Twoslash is a pre-processor that enhances your code-samples. It is a markup language for JavaScript and TypeScript.
It leverages the compiler APIs used by text editors to offer type-driven hover information, precise error messages, and type callouts.
Using the homepage as an example, here is a simple code sample: