TypeScript Professional — Medium
Key points
- Object literals trigger excess property checking at assignment
- Object references avoid excess property checking if assigned through an intermediate variable
- This distinction helps prevent errors in object property assignments
Ready to go further?
Related questions
