Quiz · Interfaces and structural typing · lesson 12 of 12
Quiz — two interfaces of one name
What does tsc report for this file?
interface Box { width: number }
interface Box { height: number }
const b: Box = { width: 2 };
console.log(b.width);What does tsc report for this file?
interface Box { width: number }
interface Box { height: number }
const b: Box = { width: 2 };
console.log(b.width);