Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
Easy
13 questionsWhat are optional properties and optional chaining in TypeScript?
Frontend · 1.2k views · optional, null-safety
How do you make values immutable in TypeScript?
Frontend · 1.1k views · readonly, immutability
How does type inference work in TypeScript?
Frontend · 895 views · inference, basics
What 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
What is TypeScript and why use it over JavaScript?
Frontend · 666 views · typescript, basics
What are tuple types?
Frontend · 629 views · tuple
Medium
52 questionsHow does `using` / `await using` with `Symbol.dispose` work in TypeScript 5.2+?
Frontend · 1.2k views · using, resource-management
What is the definite assignment assertion (!)?
Frontend · 1.2k views · definite-assignment
What is type narrowing and what are type guards?
Frontend · 1.1k views · narrowing, guards
What are generic constraints?
Frontend · 1.1k views · generics, constraints
What are assertion functions (asserts)?
Frontend · 1.1k views · asserts
What are union and intersection types?
Frontend · 1.1k views · union, narrowing
What do ReturnType and Parameters do?
Frontend · 1.0k views · returntype, parameters
What are generics and why are they useful?
Frontend · 1.0k views · generics
Hard
16 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
How do you type and compose multiple disposables with `DisposableStack` and `AsyncDisposableStack`?
Frontend · 729 views · using, DisposableStack
How do you use `infer` to build deep `Awaited`, `ReturnType` and `Unwrap` utilities?
Frontend · 709 views · infer, utility-types
What does `NoInfer<T>` do and when should you block inference?
Frontend · 704 views · infer, NoInfer
Why are conditional types distributive and how do you control it with `infer`?
Frontend · 624 views · conditional-types, infer
How do TypeScript 5.0 Stage 3 decorators differ from legacy `experimentalDecorators`?
Frontend · 576 views · decorators, tc39
What are template literal types?
Frontend · 573 views · template-literal-types
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question