✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Le code suivant génère une erreur en TS :
interface Point2D {
x: number;
y: number;
}
function iTakePoint2D(point: Point2D) {
/* do something */
console.log(point.x,point.y);
}
iTakePoint2D({ x: 0 });
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!