Advanced Generics: Overloads, Inference Tricks, and Variance
Interview-focused advanced generics: overloads, inference patterns, variance basics, and designing ergonomic typed APIs.
Practice
Search by concept, narrow to a roadmap, or pick a tag to focus on the exact topic you want to rehearse.
75 articles · page 5 of 9
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.
Learn TypeScript declaration merging with working interface and module augmentation examples, common compiler errors, and an interview exercise.
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.