Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
Easy
5 questionsHow does type inference work in TypeScript?
Frontend · 898 views · inference, basics
What is the difference between interface and type?
Frontend · 861 views · types
What are the basic types in TypeScript?
Frontend · 676 views · types, basics
What is tsconfig.json and which options matter most?
Frontend · 546 views · tsconfig, tooling
What are access modifiers in TypeScript classes?
Frontend · 191 views · access-modifiers
Medium
12 questionsWhat is the definite assignment assertion (!)?
Frontend · 1.2k views · definite-assignment
How does TypeScript 5.5 infer type predicates for `Array.filter` automatically?
Frontend · 905 views · type-predicates, filter
What is declaration merging?
Frontend · 818 views · interface-merging
What is the difference between void, undefined and never as return types?
Frontend · 813 views · void, never
What does `arethetypeswrong` (attw) detect and how do you fix false ESM/CJS packages?
Frontend · 787 views · publishing, arethetypeswrong
How do you debug type-resolution and ESM/CJS mismatches with `traceResolution` and `explain`?
Frontend · 771 views · tooling, debugging
What does the declare keyword do?
Frontend · 765 views · declare, ambient
What are declaration files (.d.ts)?
Frontend · 730 views · declaration, dts
Hard
4 questionsHow do you author library types that pass `isolatedDeclarations` for `oxc` / `tsdown` builds?
Frontend · 501 views · isolatedDeclarations, publishing
What is module augmentation?
Frontend · 464 views · module-augmentation
What is `isolatedDeclarations` and how does it enable single-file transpilation for declaration emit?
Frontend · 289 views · isolatedDeclarations, declarations
How do you choose between `NoInfer<T>`, `satisfies`, and `const` type params when designing APIs?
Frontend · 182 views · NoInfer, api-design
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question