Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
Easy
5 questionsWhat is the difference between interface and type?
Frontend · 859 views · types
What is the difference between any and unknown?
Frontend · 759 views · any, unknown
What are the basic types in TypeScript?
Frontend · 674 views · types, basics
How do you type functions: optional, default and rest parameters?
Frontend · 525 views · functions, basics
What are literal types?
Frontend · 426 views · literal-types
Medium
12 questionsWhat is the definite assignment assertion (!)?
Frontend · 1.2k views · definite-assignment
What are union and intersection types?
Frontend · 1.1k views · union, narrowing
How do you do exhaustiveness checking?
Frontend · 885 views · never, exhaustive
What is declaration merging?
Frontend · 813 views · interface-merging
What is the difference between void, undefined and never as return types?
Frontend · 809 views · void, never
How do you type async functions and Promises?
Frontend · 783 views · async, promises
What do Exclude, Extract, and NonNullable do?
Frontend · 609 views · exclude, extract
How do `noUncheckedIndexedAccess`, `exactOptionalPropertyTypes` and TS 5.6+ checks harden 2025 codebases?
Frontend · 482 views · strict, noUncheckedIndexedAccess
Hard
6 questionsWhat is key remapping in mapped types?
Frontend · 1.1k views · key-remapping
How do you use `infer` to build deep `Awaited`, `ReturnType` and `Unwrap` utilities?
Frontend · 709 views · infer, utility-types
Why are conditional types distributive and how do you control it with `infer`?
Frontend · 624 views · conditional-types, infer
How do you author library types that pass `isolatedDeclarations` for `oxc` / `tsdown` builds?
Frontend · 499 views · isolatedDeclarations, publishing
What is module augmentation?
Frontend · 461 views · module-augmentation
What are conditional types?
Frontend · 234 views · conditional-types
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question