Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Elias Aguirre
756 PointsI "broke" the contract and in my file it says that the "Object literal may only specify known properties", any idea why?
I am referring to this line of code in TypeScript:
sendEmail({name: "a", email:"b", phone:"11111111"});
when my interface is constructed as follows:
interface IEmailable { name: string, email: string }
As I try adding something else apart from what is contained in my interface, unlike the video, it didnt allow me to, any ideas why?
Elias Aguirre
756 PointsElias Aguirre
756 PointsIs it just part of the new TypeScript version maybe?