Interfaces vs Types in TypeScript
<p>What is the difference between these statements (<code>interface</code> vs <code>type</code>) in TypeScript?</p>
<pre><code>interface X {
    a: number
    b: string
}

type X = {
    a: number
    b: string
};
</code></pre>