Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
Easy
12 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
41 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 assertion functions (asserts)?
Frontend · 1.1k views · asserts
What are generics and why are they useful?
Frontend · 1.0k views · generics
What is ReadonlyArray and readonly tuple?
Frontend · 998 views · readonly-array
What are type assertions and when should you use them?
Frontend · 966 views · assertion
What are enums and what are their trade-offs?
Frontend · 948 views · enums
Hard
13 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
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
How do you author library types that pass `isolatedDeclarations` for `oxc` / `tsdown` builds?
Frontend · 499 views · isolatedDeclarations, publishing
What are recursive types?
Frontend · 441 views · recursive-types
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question