Advanced Generics: Overloads, Inference Tricks, and Variance
Interview-focused advanced generics: overloads, inference patterns, variance basics, and designing ergonomic typed APIs.
Practice
Use the blog to sharpen answers, review weak areas, and move from basics to mock-style prep without guessing what to read next.
Resume Prep
Jump back into the roadmap you already started, or use the article filters below to practice a specific topic.
Start with JavaScript Core and build your path from basics to mock review.
Basics build confidence, practice sharpens answers, and the roadmap keeps you moving toward the next interview topic.
If you want a guided path (instead of random reading), pick a roadmap. Each one is ordered top-to-bottom.
Event loop, closures, this, hoisting, async, and the fundamentals interviews test.
Types vs interfaces, narrowing, generics, utility types, and practical TS patterns.
Rendering, hooks, state, effects, performance, and common production patterns.
Semantics, layout, flexbox/grid, responsive design, accessibility, modern CSS.
The first lesson in each roadmap — great if you want a clean entry point.
A practical, interview-focused guide to the JS event loop: call stack, Web APIs, task queues, microtasks vs macrotasks, and common trick questions with real examples.
A deep, interview-ready guide to TypeScript types vs interfaces: extension, unions, intersections, declaration merging, and practical patterns for real codebases.
Filter Your Practice
Search by concept, narrow to a series, or pick a tag to focus on the exact topic you want to rehearse.
Results
Interview-focused advanced generics: overloads, inference patterns, variance basics, and designing ergonomic typed APIs.
How keyof + mapped types work, and how template literal types unlock powerful typed APIs.
Props, children, event handlers, generics in components, and common TS + React pitfalls interviewers ask about.
When to use enums, when to prefer string unions, and what const enums change.
A practical guide to TS compiler options interviewers ask about: strict, noImplicitAny, lib, moduleResolution, jsx, and incremental builds.
How TypeScript merges interfaces, augments modules (like Express/NextAuth), and why this matters in real codebases.
Understand conditional types, infer, and how TypeScript extracts types from functions/promises/arrays.
How `satisfies` helps validate shapes without losing literal types, and why it often beats `as const` and type annotations.
How narrowing works in TypeScript: typeof/in, custom type guards, assertion functions, and practical patterns for safer code.