5.8 Optional Properties and Their Interaction with strictNullChecks
Now, let’s get into the weeds on optional properties and strictNullChecks. This is where TypeScript stops being polite and starts getting real. You’ve probably defined an interface where not every property is required. You slap a ? on it and call it a day. But when you flip on strictNullChecks—which you absolutely should, it’s the single most important compiler flag—that innocent little question mark starts to mean a whole lot more.