Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
81 Questions49.3k 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 ยท 998 views ยท readonly-array
Views:998Likes:45
What are type assertions and when should you use them?
Frontend ยท 966 views ยท assertion
Views:966Likes:6
How do you type async functions and Promises?
Frontend ยท 783 views ยท async, promises
Views:783Likes:64
How does the 'in' operator narrow types?
Frontend ยท 736 views ยท narrowing, in
Views:736Likes:14
How do you migrate a JavaScript codebase to TypeScript?
Frontend ยท 661 views ยท migration, tooling
Views:661Likes:10
What does the 'strict' flag in tsconfig enable?
Frontend ยท 536 views ยท config, tsconfig
Views:536Likes:58
What are `const` type parameters (`<const T>`) and why are they better than `as const`?
Frontend ยท 479 views ยท generics, const-type-parameters
Views:479Likes:68
Hard
4 questionsHow do you use `infer` to build deep `Awaited`, `ReturnType` and `Unwrap` utilities?
Frontend ยท 709 views ยท infer, utility-types
Views:709Likes:70
What does `NoInfer<T>` do and when should you block inference?
Frontend ยท 704 views ยท infer, NoInfer
Views:704Likes:24
Why are conditional types distributive and how do you control it with `infer`?
Frontend ยท 624 views ยท conditional-types, infer
Views:624Likes:73
What are recursive types?
Frontend ยท 441 views ยท recursive-types
Views:441Likes:72
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question