Sector file // typescript
TYPESCRIPTDECODED.
Types, generics & inference
Easy
5 questionsHow 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 tsconfig.json and which options matter most?
Frontend · 545 views · tsconfig, tooling
What are access modifiers in TypeScript classes?
Frontend · 190 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 · 904 views · type-predicates, filter
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
What does `arethetypeswrong` (attw) detect and how do you fix false ESM/CJS packages?
Frontend · 782 views · publishing, arethetypeswrong
How do you debug type-resolution and ESM/CJS mismatches with `traceResolution` and `explain`?
Frontend · 770 views · tooling, debugging
What does the declare keyword do?
Frontend · 764 views · declare, ambient
What are declaration files (.d.ts)?
Frontend · 728 views · declaration, dts
Hard
4 questionsHow 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 is `isolatedDeclarations` and how does it enable single-file transpilation for declaration emit?
Frontend · 286 views · isolatedDeclarations, declarations
How do you choose between `NoInfer<T>`, `satisfies`, and `const` type params when designing APIs?
Frontend · 179 views · NoInfer, api-design
Seen a TypeScript question that is not here? Add it and help the next candidate.
Share a question