TypeScript concept map
All topics
- Optional propertiesOmit a property from Tag and see what the function reads.
- Default parametersLeave out Tag’s second argument and see where its color comes from.
- Union typesResize an avatar and see why TypeScript flags xl.
- Branching on a variantFollow ghost and secondary to two different returns with the same color.
- Exhaustive switchesCompare four if statements with four cases, then remove one case.