ESM vs CJS in TypeScript (Interop Without Tears)
Understand what TypeScript emits vs what Node runs, and how to avoid the common import/export traps in real codebases.
Practice
Search by concept, narrow to a roadmap, or pick a tag to focus on the exact topic you want to rehearse.
103 articles · page 5 of 12
Understand what TypeScript emits vs what Node runs, and how to avoid the common import/export traps in real codebases.
How to validate TypeScript types, design safer APIs, and avoid unsafe assertions—interview-ready patterns.
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.