Types TypeScript Interview Questions
8 curated types interview questions for TypeScript — with short answers, detailed explanations, and interview tips. Ideal for Fresh through Tech Lead prep.
What are TypeScript's primitive types?
Fresh / InternConcept
any vs unknown vs never?
Fresh / InternComparison
What is a union type and when do you use it?
JuniorConcept
Intersection types — what are they for?
Mid-LevelConcept
type vs interface for object shapes?
Mid-LevelComparison
What are literal types?
SeniorConcept
Explain void vs undefined as return types.
SeniorComparison
How do tuples differ from arrays in TS?
Tech LeadConcept