TypeScript concepts

TypeScript · Generics

TypeScript Generics puzzles

3 TypeScript puzzles on generics. Read the snippet, guess the output, then reveal the answer and why TypeScript behaves that way.