Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
Easy
11 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 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
What is tsconfig.json and which options matter most?
Frontend · 545 views · tsconfig, tooling
Medium
28 questionsWhat is the definite assignment assertion (!)?
Frontend · 1.2k views · definite-assignment
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 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
How does TypeScript 5.5 infer type predicates for `Array.filter` automatically?
Frontend · 904 views · type-predicates, filter
What is declaration merging?
Frontend · 813 views · interface-merging
Hard
3 questionsHow would you build a DeepPartial type?
Frontend · 857 views · partial-deep
What is module augmentation?
Frontend · 461 views · module-augmentation
What is `isolatedDeclarations` and how does it enable single-file transpilation for declaration emit?
Frontend · 286 views · isolatedDeclarations, declarations
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question