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 · 949 views · enums
How does TypeScript 5.5 infer type predicates for `Array.filter` automatically?
Frontend · 905 views · type-predicates, filter
How do you do exhaustiveness checking?
Frontend · 886 views · never, exhaustive
What are mapped types?
Frontend · 876 views · mapped-types
What are indexed access types?
Frontend · 760 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 · 859 views · partial-deep
How do you use `infer` to build deep `Awaited`, `ReturnType` and `Unwrap` utilities?
Frontend · 710 views · infer, utility-types
Why are conditional types distributive and how do you control it with `infer`?
Frontend · 626 views · conditional-types, infer
What are template literal types?
Frontend · 575 views · template-literal-types
What are recursive types?
Frontend · 443 views · recursive-types
What does the infer keyword do?
Frontend · 384 views · infer
What are conditional types?
Frontend · 236 views · conditional-types
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question