02 · Track
TypeScript
The type system, generics, narrowing and designing types for large codebases.
Topics · 6
- 01
What TypeScript is and what it is not: a type checker whose types are erased before the code runs, structural compatibility and excess property checks, interface vs type, any, unknown and never, the strict flags that matter, erasable syntax and branded types.
JuniorMiddleSenior· 15 questions - 02
How TypeScript refines union types from ordinary JavaScript checks (typeof, truthiness, equality, in, instanceof), how control-flow analysis follows them and where it stops, unknown and caught errors, discriminated unions with exhaustiveness checks, and type guards that can lie.
JuniorMiddleSenior· 15 questions· Requires: Structural typing and type erasure - 03
How generics keep the relation between the types that go into a function or type and the types that come out: type parameters and inference at call sites, constraints, keyof with indexed access, defaults, generic classes, unnecessary type parameters, const type parameters, NoInfer and variance.
JuniorMiddleSenior· 14 questions· Requires: Structural typing and type erasure - 04
How TypeScript computes types from other types: keyof, typeof and indexed access, the everyday utility types and how they are defined, mapped types with modifiers and key remapping, template literal types, conditional types with infer and distribution, and when type-level code is too clever.
MiddleSenior· 14 questions· Requires: Generics - 05
How to type React components with React 19's types: props, children and defaults, event handlers, useState, useRef and useReducer, wrappers around native elements that take ref as a prop, generic components, and props that only make sense in certain combinations.
JuniorMiddleSenior· 14 questions· Requires: Generics, Narrowing, type guards and unknown, Reconciliation and re-renders - 06
Why types are only a promise for data from fetch, JSON.parse, storage, the URL, forms and postMessage; why as, ! and satisfies check nothing at run time; and how to parse data once at the edge with a schema (Zod 4), handle invalid data and trust the types after that.
JuniorMiddleSenior· 14 questions· Requires: Narrowing, type guards and unknown