Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
Easy
4 questionsWhat is the difference between interface and type?
Frontend ยท 859 views ยท types
What are the basic types in TypeScript?
Frontend ยท 674 views ยท types, basics
What are tuple types?
Frontend ยท 629 views ยท tuple
How do you type functions: optional, default and rest parameters?
Frontend ยท 525 views ยท functions, basics
Medium
11 questionsWhat do ReturnType and Parameters do?
Frontend ยท 1.0k views ยท returntype, parameters
What is ReadonlyArray and readonly tuple?
Frontend ยท 998 views ยท readonly-array
What are mapped types?
Frontend ยท 873 views ยท mapped-types
How do you type async functions and Promises?
Frontend ยท 783 views ยท async, promises
What are indexed access types?
Frontend ยท 759 views ยท index-access
What are `const` type parameters (`<const T>`) and why are they better than `as const`?
Frontend ยท 479 views ยท generics, const-type-parameters
How does `satisfies` validate shape without widening literal types?
Frontend ยท 266 views ยท satisfies, narrowing
What does the satisfies operator do?
Frontend ยท 216 views ยท satisfies
Hard
5 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
Why are conditional types distributive and how do you control it with `infer`?
Frontend ยท 624 views ยท conditional-types, infer
What are recursive types?
Frontend ยท 441 views ยท recursive-types
What does the infer keyword do?
Frontend ยท 382 views ยท infer
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question