Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
81 Questions49.3k Views3.5k Upvotes
13 easy52 med16 hard
Easy
3 questionsMedium
11 questionsHow does `using` / `await using` with `Symbol.dispose` work in TypeScript 5.2+?
Frontend ยท 1.2k views ยท using, resource-management
Views:1.2kLikes:25
What is the definite assignment assertion (!)?
Frontend ยท 1.2k views ยท definite-assignment
Views:1.2kLikes:56
What is type narrowing and what are type guards?
Frontend ยท 1.1k views ยท narrowing, guards
Views:1.1kLikes:34
How do you do exhaustiveness checking?
Frontend ยท 885 views ยท never, exhaustive
Views:885Likes:31
What is declaration merging?
Frontend ยท 813 views ยท interface-merging
Views:813Likes:62
What does the declare keyword do?
Frontend ยท 764 views ยท declare, ambient
Views:764Likes:49
How does the 'in' operator narrow types?
Frontend ยท 736 views ยท narrowing, in
Views:736Likes:14
What are declaration files (.d.ts)?
Frontend ยท 728 views ยท declaration, dts
Views:728Likes:68
Hard
4 questionsWhat is module augmentation?
Frontend ยท 461 views ยท module-augmentation
Views:461Likes:58
What does the infer keyword do?
Frontend ยท 382 views ยท infer
Views:382Likes:45
What are covariance and contravariance?
Frontend ยท 319 views ยท variance
Views:319Likes:23
How do you choose between `NoInfer<T>`, `satisfies`, and `const` type params when designing APIs?
Frontend ยท 179 views ยท NoInfer, api-design
Views:179Likes:49
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question