The TypeScript docs have IDE-like hover types on all the examples, which is really impressive. I also like how the second example always shows the type of the relevant part, regardless of mouse position. It's clear and mobile friendly. Screenshot from https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types