Teaching TypeScript is mostly an exercise in restraint. The person in front of you does not need the whole type system; they need one annotation, one error they caused themselves, and one success they can explain out loud. The sequence below works for a colleague, a friend, or a small study group, and it flags the places where well-meaning teachers lose people.
Start with JavaScript they can already run
Before any annotation appears, confirm the beginner can write a small function in plain JavaScript and predict what it prints. TypeScript sits on top of that foundation. When the foundation wobbles, every type error looks like a TypeScript problem when it is really a JavaScript one.
Keep the toolchain invisible for the first session: one file, one annotation, one command. Config files and build steps can wait until the beginner asks why something is set up a certain way.
Add one annotation, then break it on purpose
Annotate a single parameter. Then call the function with the wrong kind of value and ask the beginner to predict the error before running the compiler. Predicting and being wrong is the fastest route to understanding what the checker actually sees.
- What type does the compiler think this value has?
- Which line will it complain about first?
- Is the fix in the call, or in the function?
Those three questions, asked repeatedly, become a debugging habit that outlasts the lesson.
Teach the error message, not just the fix
Beginners copy the solution and move on. Stop them. Have them read the message aloud and restate the conflict in their own words: expected this, received that, at this position. That habit pays off for years, long after your session ends.
When a message is enormous, do not read it together line by line. Teach the escape hatch instead: hover the variable, split the expression, and watch which part produces the ugly type.
Things to hold back
Generics, conditional types, decorators, and declaration merging all have their place, and none of them belong in week one. Introduce them early and you will spend the next session answering questions about machinery instead of data.
A useful rule: teach a feature when the beginner’s own code has just demonstrated the problem it solves. Repetition comes before abstraction, and they will remember the abstraction because they felt the repetition first.
Homework that fits on one screen
Assign small, complete tasks: type a function that takes a config object, model an item in a shopping cart, handle two shapes of an API result. Each one should be finishable in twenty minutes and reviewable without scrolling.
Review by asking why each type is what it is, not by correcting syntax. If the beginner can justify the shape, they will be able to change it later without you.
Measure the teaching by the questions that arrive a week later. If they are about data shapes and error messages, the approach is working. If they are about which extension to install, go back to the code.