Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
Easy
3 questionsMedium
23 questionsWhat is type narrowing and what are type guards?
Frontend · 1.1k views · narrowing, guards
What are generic constraints?
Frontend · 1.1k views · generics, constraints
What are union and intersection types?
Frontend · 1.1k views · union, narrowing
What are enums and what are their trade-offs?
Frontend · 948 views · enums
How does TypeScript 5.5 infer type predicates for `Array.filter` automatically?
Frontend · 904 views · type-predicates, filter
How do you do exhaustiveness checking?
Frontend · 885 views · never, exhaustive
What are mapped types?
Frontend · 873 views · mapped-types
What are indexed access types?
Frontend · 759 views · index-access
Hard
9 questionsWhat is key remapping in mapped types?
Frontend · 1.1k views · key-remapping
How would you build a DeepPartial type?
Frontend · 857 views · partial-deep
How do you use `infer` to build deep `Awaited`, `ReturnType` and `Unwrap` utilities?
Frontend · 709 views · infer, utility-types
Why are conditional types distributive and how do you control it with `infer`?
Frontend · 624 views · conditional-types, infer
What are template literal types?
Frontend · 573 views · template-literal-types
What are recursive types?
Frontend · 441 views · recursive-types
What does the infer keyword do?
Frontend · 382 views · infer
What are conditional types?
Frontend · 234 views · conditional-types
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question