TypeScript concepts

TypeScript · Type Erasure

TypeScript Type Erasure puzzles

7 TypeScript puzzles on type erasure. Read the snippet, guess the output, then reveal the answer and why TypeScript behaves that way.