title: Has type been deprecated in favor of interface?
body: <p>I know the following codeblocks are equivalent.</p>
  
  <pre class="lang-js prettyprint-override"><code>export interface Person {
    id: number;
    name: string;
  }
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>export type Person = {
    id: number;
    name: string;
  }
  </code></pre>
  
  <p>I am aware of <a href="https://stackoverflow.com/questions/37233735/typescript-interfaces-vs-types">Typescript: Interfaces vs Types</a> but can’t figure out when to use <code>type</code> over <code>interface</code>. Guess <code>type</code> exists for a reason.</p>
  
  <p>The handbook on <a href="https://www.typescriptlang.org/docs/home.html" rel="nofollow noreferrer">https://www.typescriptlang.org/docs/home.html</a> doesn’t mention <code>type</code>. Nor could I find docs on <a href="https://duckduckgo.com/?q=site%3Atypescriptlang.org+type" rel="nofollow noreferrer">https://duckduckgo.com/?q=site%3Atypescriptlang.org+type</a>. Is it possible <code>type</code> has been deprecated in favor of <code>interface</code>?</p>
  
  <p>Thanks!</p>