Advanced Vocabulary #typescript #type-system #utility-types #type-narrowing

TypeScript — Advanced Types

5 exercises — interface vs type alias, discriminated unions with exhaustive checking, built-in utility types, type narrowing, and reading TypeScript compiler errors in plain English.

0 / 5 completed
1 / 5
During a TypeScript code review, a reviewer comments: "Prefer an interface over a type alias here — this shape needs to be extendable." What is the key difference that makes the reviewer favour interface?