Concept
TypeScript works out most types from the values you assign and return, so annotations are for boundaries, not every line. Reading what it inferred is the fastest way to find a mistake.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Type inference doing its job.
const port = 8080; // 8080, a literal type (const)
let host = "localhost"; // string
const tags = ["a", "b"]; // string[]
function double(n: number) {
return n * 2; // return type inferred as number
}
const result = double(port); // numberAnnotating everything "to be safe", including values whose type is obvious. It hides the places where an annotation is doing real work, and a wrong annotation beats a correct inference.
Your roadmap puts these before Type inference, unless you already know them.
Once a session shows you understand Type inference, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.
Topics that build on Type inference.