A focused collection of the most critical TypeScript interview questions covering type system internals, advanced types, and best practices for modern development.
0%
Overall Progress
0/50
Status
Problem
Level
2.What is the difference between any, unknown, and never types?
Medium
3.What is the difference between interface and type alias?
Medium
4.What are union types and intersection types?
Easy
5.What is type inference in TypeScript?
Easy
6.What is type assertion? (as vs <> syntax)
Medium
7.What is the difference between null and undefined?
Easy
8.What are generics? Why are they useful?
Hard
9.What is tsconfig.json and its important options?
Medium
10.What is strictNullChecks?
Medium
11.What are optional chaining (?.) and nullish coalescing (??)?
Easy
12.What is the readonly modifier?
Easy
13.What are literal types?
Medium
14.What is type narrowing and type guards?
Medium
15.What is the keyof operator?
Hard
16.How do you define optional and default parameters?
Easy
17.What is function overloading in TypeScript?
Medium
18.What are rest parameters with TypeScript?
Easy
19.How do you type arrow functions?
Easy
20.What is the this parameter type?
Hard
21.How do you create generic functions?
Medium
22.What is ReturnType<T> utility type?
Hard
23.What are optional properties in interfaces?
Easy
24.What is interface declaration merging?
Medium
25.What are index signatures?
Medium
26.What are access modifiers: public, private, protected?
Easy
27.What is the difference between private and #private?
Hard
28.What are abstract classes and methods?
Medium
29.What is the difference between extends and implements?
Easy
30.What are parameter properties in classes?
Medium
31.What are static members?
Easy
32.What are getters and setters?
Medium
33.What are utility types? (Partial, Required, Pick, Omit, Record)
Medium
34.What is Partial<T> and when to use it?
Medium
35.What is Pick<T, K> and Omit<T, K>?
Medium
36.What are mapped types?
Hard
37.What are conditional types?
Hard
38.What is the infer keyword?
Hard
39.What are discriminated unions (tagged unions)?
Hard
40.What are custom type guards using is keyword?
Medium
41.What is as const assertion?
Medium
42.What are tuple types?
Easy
43.What are enums? Difference between numeric and string enums?
Easy
44.What are const enums?
Medium
45.What is the difference between modules and namespaces?
Medium
46.What are declaration files (.d.ts)?
Medium
47.What is the declare keyword?
Hard
48.How do you add TypeScript to an existing JavaScript project?
Medium
49.How do you handle external JavaScript libraries without types?
Medium
50.What are common TypeScript errors and how to fix them?