The core idea
A type is a promise about what a value can be. A union type is a promise with choices, like "pending" or "paid".
Use basic types for simple values. Use unions when only a few values are valid.
Basic types you use
You will use string, number, boolean, null, undefined, array types, and object shapes often. Lesson 4 will go deeper on object modelling, so keep this lesson focused on small values.
Do not type everything by hand. TypeScript can infer many values. Add types where they make intent clear, especially data coming from forms, APIs, or config.