12 Tricky TypeScript Questions That Separate Good Developers From Great Ones

Short, sharp, and deliberately uncomfortable — 12 senior-level TypeScript questions for developers who think they know TypeScript. Type-level edge cases, compiler quirks, and the gap between "I use TypeScript" and "I understand how the compiler thinks."

Topics covered: Type System, Generics, Functions, Type Guards, Interfaces and Types, Modules.

1. Ambient declaration vs implementation in global scope

Topic: Variables and Declarations · Difficulty: ⭐⭐ Hard