Understanding Interfaces Versus Type Aliases
// Some data we collect in a web form
interface FormData {
name: string;
age: number;
address: string[];
}
// A function that sends this data to a backend
function send(data: FormData) {
console.log(data.entries()) // this compiles!
// but crashes horrendously in runtime
}