Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
81 Questions49.5k Views3.5k Upvotes
13 easy52 med16 hard
Easy
2 questionsMedium
14 questionsWhat do ReturnType and Parameters do?
Frontend ยท 1.0k views ยท returntype, parameters
Views:1.0kLikes:35
What is ReadonlyArray and readonly tuple?
Frontend ยท 1.0k views ยท readonly-array
Views:1.0kLikes:45
What are type assertions and when should you use them?
Frontend ยท 968 views ยท assertion
Views:968Likes:6
How do you type async functions and Promises?
Frontend ยท 785 views ยท async, promises
Views:785Likes:64
How does the 'in' operator narrow types?
Frontend ยท 738 views ยท narrowing, in
Views:738Likes:14
How do you migrate a JavaScript codebase to TypeScript?
Frontend ยท 663 views ยท migration, tooling
Views:663Likes:10
What does the 'strict' flag in tsconfig enable?
Frontend ยท 539 views ยท config, tsconfig
Views:539Likes:58
What are `const` type parameters (`<const T>`) and why are they better than `as const`?
Frontend ยท 481 views ยท generics, const-type-parameters
Views:481Likes:68
Hard
4 questionsHow do you use `infer` to build deep `Awaited`, `ReturnType` and `Unwrap` utilities?
Frontend ยท 710 views ยท infer, utility-types
Views:710Likes:70
What does `NoInfer<T>` do and when should you block inference?
Frontend ยท 706 views ยท infer, NoInfer
Views:706Likes:24
Why are conditional types distributive and how do you control it with `infer`?
Frontend ยท 626 views ยท conditional-types, infer
Views:626Likes:73
What are recursive types?
Frontend ยท 443 views ยท recursive-types
Views:443Likes:72
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question