Interview practice question
A confusing excess property error
Frontend Engineering · TypeScript · Intermediate
A teammate is confused because passing an object literal causes an error, but passing the same object through a variable doesn't. How do you explain and resolve it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Excess property checks on fresh literals.
- Likely typo or extra field.
- Variables skip check (structural).
- Fix type or remove property.
- Don't silence with assertions.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.