How to declare a type globally in a project (typescript) : <p>In a typescript project,
  is there any way to declare a type and share it across all files, in the same way we have access to types defined globally at <code>node.d.ts</code>?</p>

<p>For example, let's say that in my project a <code>IUser</code> is something such as </p>

<pre><code>interface IUser {
   name: string,
   mail: string
 }
</code></pre>

<p>Ok, I can create that interface in a <code>common/interfaces.ts</code> file and import it every time I need it... but would be so nice to be able to declare such interfaces globally for the whole project and have quick access to them without importing any file</p>
