Back to Tech Interviews

TypeScript Interview Master

Curated 25+ essential TypeScript questions covering interfaces, type guards, generics, utility types, and advanced mapped types.

Total: 25 QuestionsLearned: 0 / 25 (0%)
Difficulty Filters

Tools & Options
Showing 25 of 25 questions
Beginner
What is TypeScript, and how is it different from JavaScript?
Beginner
Explain the difference between `interface` and `type` alias.
Beginner
What are generics in TypeScript?
Intermediate
What is the difference between `any` and `unknown` types?
Beginner
What are union and intersection types?
Intermediate
What is Type Narrowing / Type Guards?
Intermediate
How do you define a custom type guard in TypeScript?
Intermediate
What does the `keyof` operator do?
Beginner
What are utility types? List some common ones.
Intermediate
Explain the `Pick` and `Omit` utility types.
Intermediate
What is the difference between `never` and `void`?
Beginner
What is an enum in TypeScript, and how is it used?
Beginner
What is a Tuple type?
Intermediate
What is type assertion, and how does it differ from type casting?
Beginner
What is the non-null assertion operator?
Beginner
What is the `readonly` modifier in TypeScript?
Intermediate
Explain index signatures in TypeScript.
Advanced
What are conditional types in TypeScript?
Advanced
Explain the `infer` keyword in conditional types.
Advanced
What are mapped types in TypeScript?
Advanced
Explain template literal types.
Intermediate
What is structural typing in TypeScript?
Beginner
What is strict mode in TypeScript?
Scenario
How do you type React components and events in TypeScript?
Scenario
How do you declare types for external non-TypeScript JavaScript libraries?