TypeScript Infer for Type Extraction
How infer pulls element, return and parameter types out of other types, why readonly arrays don't match T[], and how to parse route strings.
Focused explanations and longer guides, with worked scenarios, common mistakes and interview exercises across every chapter.
Showing 193–200 of 200 articles
How infer pulls element, return and parameter types out of other types, why readonly arrays don't match T[], and how to parse route strings.
Why let and object properties widen "GET" to string, how as const keeps literals and readonly tuples, and what it does not do at runtime.
How strictNullChecks narrows through returns, closures and filter calls, where it keeps a narrowing it shouldn't, and what to do about Map.get.
What lexical scope and closures really are, why the var + setTimeout loop prints 3 3 3, three ways to fix it, and where closures earn their keep in real code.
How the browser decides which CSS rule wins (origin, @layer, specificity, order), how inheritance and box-sizing work, and why z-index can seem broken.
Build debounce and throttle the way interviewers expect: timelines, this and args, cancel(), leading and trailing edges, and how to test them.
How the call stack, task queue and microtask queue fit together, where rendering happens, how async/await schedules work, and output puzzles with answers.
How JavaScript decides what this means: default, implicit, explicit and new binding, which one wins, why arrow functions ignore them, and the classic bugs.
No notes match that… try another filter.