Back to Prep Library
Category Blueprint
TypeScript Interview Library
Advanced types, generic abstractions & type-safety
Questions50
Views31.5k
Upvotes2.1k
Filter
Question Catalog
(50 visible)TypeScript· Frontend
How do you make values immutable in TypeScript?
1.1k11
easy
TypeScript· Frontend
How do you do exhaustiveness checking?
88431
easy
TypeScript· Frontend
What is the difference between interface and type?
85931
easy
TypeScript· Frontend
What is the difference between any and unknown?
75910
easy
TypeScript· Frontend
What is TypeScript and why use it over JavaScript?
66523
easy
TypeScript· Frontend
What are tuple types?
62922
easy
TypeScript· Frontend
How do you safely work with JSON of unknown shape?
44975
easy
TypeScript· Frontend
What are literal types?
42674
easy
TypeScript· Frontend
How does TypeScript handle null and undefined safely?
2858
easy
TypeScript· Frontend
What are access modifiers in TypeScript classes?
19058
easy
TypeScript· Frontend
What is the definite assignment assertion (!)?
1.1k56
medium
TypeScript· Frontend
What is type narrowing and what are type guards?
1.1k34
medium
TypeScript· Frontend
What are generic constraints?
1.1k1
medium
TypeScript· Frontend
What are union and intersection types?
1.1k69
medium
TypeScript· Frontend
What do ReturnType and Parameters do?
1.0k35
medium
TypeScript· Frontend
What are generics and why are they useful?
1.0k39
medium
TypeScript· Frontend
What is ReadonlyArray and readonly tuple?
99845
medium
TypeScript· Frontend
What are type assertions and when should you use them?
9666
medium
TypeScript· Frontend
What are abstract classes?
82073
medium
TypeScript· Frontend
What is declaration merging?
81262
medium
TypeScript· Frontend
What does the declare keyword do?
76449
medium
TypeScript· Frontend
How does the 'in' operator narrow types?
73614
medium
TypeScript· Frontend
What do Exclude, Extract, and NonNullable do?
60847
medium
TypeScript· Frontend
What are utility types like Partial, Pick, and Omit?
59468
medium
TypeScript· Frontend
What does the 'strict' flag in tsconfig enable?
53658
medium
TypeScript· Frontend
What is a discriminated union?
49350
medium
TypeScript· Frontend
What is an index signature?
3189
medium
TypeScript· Frontend
Can generics have default types?
30827
medium
TypeScript· Frontend
What is structural typing?
28826
medium
TypeScript· Frontend
How do you get a union of an object's values as a type?
20745
medium
TypeScript· Frontend
What is the Awaited utility type?
19940
medium
TypeScript· Frontend
What do keyof and typeof do in TypeScript?
16773
medium
TypeScript· Frontend
What is the never type?
11312
medium
TypeScript· Frontend
What are assertion functions (asserts)?
1.1k57
hard
TypeScript· Frontend
What is key remapping in mapped types?
1.1k6
hard
TypeScript· Frontend
What are enums and what are their trade-offs?
94754
hard
TypeScript· Frontend
What are mapped types?
87266
hard
TypeScript· Frontend
How would you build a DeepPartial type?
85772
hard
TypeScript· Frontend
What are indexed access types?
75835
hard
TypeScript· Frontend
What are declaration files (.d.ts)?
72868
hard
TypeScript· Frontend
What are template literal types?
57358
hard
TypeScript· Frontend
What is module augmentation?
46158
hard
TypeScript· Frontend
What are recursive types?
44072
hard
TypeScript· Frontend
What does the infer keyword do?
38145
hard
TypeScript· Frontend
What are function overloads?
36514
hard
TypeScript· Frontend
What is a polymorphic 'this' type?
34646
hard
TypeScript· Frontend
What are covariance and contravariance?
31923
hard
TypeScript· Frontend
What are conditional types?
23432
hard
TypeScript· Frontend
What does the satisfies operator do?
21579
hard
TypeScript· Frontend
What are branded (nominal) types?
15651
hard
Difficulty Distribution
Easy10 (20%)
Medium23 (46%)
Hard17 (34%)
Tested Topics
#narrowing#never#unknown#generics#keyof#readonly#immutability#exhaustive
Study Guide
Practice advanced mapped/conditional types, utility implementations, type assertion guards, and strict configuration parameters.