Concept
Both describe the shape of an object. interface can be extended and merged; type can also name unions, tuples and functions. Pick one style per codebase and use it consistently.
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 Interfaces and type aliases doing its job.
interface User {
id: string;
name: string;
email?: string;
}
interface Admin extends User {
permissions: string[];
}
type UserId = User["id"];
type Pair = [User, Admin];Assuming an interface checks the object at runtime. Types vanish when the code compiles; data from a network or a file still needs a runtime check before you trust its shape.
Your roadmap puts these before Interfaces and type aliases, unless you already know them.
Once a session shows you understand Interfaces and type aliases, 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 Interfaces and type aliases.