Interview study guide
TypeScript, type by type.
Everything from my TypeScript study doc, reorganised by topic and filled in where the notes were only a heading or a screenshot. Every example is checked by the real compiler, and every one has a walkthrough of what the type checker is doing.
- Chapters
- 14
- Topics
- 143
- Code samples
- 441
- Added beyond the doc
- 10
Learned
0 / 143
Study streak
0 days
This week
- 0 topics learned
- 0 highlights
- 0 of 7 days studied
Recent highlights See all →
Install TypeScript Notes as an appOpens full screen from your home screen and works offline.
01Getting Started & the CompilerWhat TypeScript is, how it runs, and the tsconfig options that matter in interviews.02Everyday TypesInference, primitives and literals, arrays and tuples, object types, and the special types any, unknown, never and void.03Interfaces & Type AliasesDescribing object shapes, extending and merging them, function and index signatures, and when to pick interface or type.04Unions, Narrowing & Type GuardsCombining types with unions and intersections, then narrowing them safely with typeof, instanceof, in, custom guards and discriminated unions.05Assertions, as const & satisfiesTelling the compiler what you know — and the safer tools (as const, satisfies) that keep it checking.06FunctionsTyping parameters and returns, overloads and when generics beat them, async functions and this.07Classes & EnumsWhat TypeScript adds to classes, explicit resource management with using, and enums — plus why many teams prefer literal unions.08GenericsWriting code that works for many types without losing type safety — functions, interfaces, classes, constraints and defaults.09Type OperatorsBuilding types from other types and values: keyof, typeof, indexed access and the patterns interviews love.10Utility TypesThe built-in type transformers — what each does, how it's built, and where it bites.11Mapped & Conditional TypesThe machinery behind every utility type — mapping over keys, branching on types, infer and template literals.12Modules & Declaration FilesHow TypeScript describes code it didn't compile — .d.ts files, declare, @types, globals and module augmentation — plus namespaces.13TypeScript in PracticeTypeScript with React and Node, validating data at runtime, and a couple of typed utilities from the notes.14Type ChallengesThe "implement this type" questions from the notes, solved step by step.
Added marks topics that weren’t in my original doc. Tick Learned on a topic to track what you’ve revised.