Concept Flow - Excess property checks vs structural compatibility
Create object with extra property
Assign to variable with fewer properties
Excess Property Check?
Error at assignment
Use object
When assigning objects, TypeScript checks for extra properties only in direct assignments (excess property checks). Otherwise, it allows assignments if the object structure matches (structural compatibility).