4 lessons, in order. Each one runs in the editor above; for the concepts behind them, read the TypeScript guide.
Type basicsGet to know the basic TypeScript type system.
GenericsWrite reusable, type-safe code with generics.
Advanced. Modeling state with discriminated unionsFixing the success/failure/loading states as a union reduces missed branches and wrong field access.
Advanced. The Result pattern and error boundariesTreating success/failure as values instead of throwing everywhere lets UI, API, and test code control failure flows explicitly.