Problem Statement
Pick the structural typing statement:
Explanation
TypeScript uses structural typing: two types are compatible if their required members line up, regardless of their declared names. This applies across interfaces, type aliases, and classes treated as shapes.
Code Solution
SolutionRead Only
type Point = { x: number; y: number }
interface Coords { x: number; y: number }
const p: Point = { x: 1, y: 2 };
const c: Coords = p; // ✅ structural compatibility