Skip to content
RED SAG Skills
medium10 pts · first answer countsjavascripttypescript

Passing an object with extra fields

Does this compile?

interface Point { x: number; y: number }
const p3 = { x: 1, y: 2, z: 3 }
const p: Point = p3
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions