Arrays, Tuples, Enums and Special Types
Read-only arrays, tuples, enums and their alternatives, object vs {} vs unknown, the never type, and type assertions with satisfies.
You know how to describe single values, objects and unions. This phase fills in the rest of the everyday toolbox: lists that must not change (readonly arrays), lists with a fixed shape (tuples), named constants (enums), and the special types that sit at the very top and very bottom of TypeScript's type system.
You'll also learn the tools for telling the compiler something it can't work out by itself: type assertions (as, !) and the newer satisfies operator, and when each one hides a bug instead of fixing it.
Everything here is checked by the real compiler in your browser. Read each error before you scroll: predicting the message is the quickest way to learn how the checker thinks.
Practise this phase
Hands-on exercises: write the code, see your page live, and press Check to have it tested automatically.