title: module.exports in typescript
body: <p>does somebody know how to do a module.exports?</p>
  
  <p>I tried some different ways ending up with</p>
  
  <pre class="lang-js prettyprint-override"><code>export class Greeter {}
  </code></pre>
  
  <p>which will compile to</p>
  
  <pre class="lang-js prettyprint-override"><code>exports.Greeter = Greeter;
  </code></pre>
  
  <p>But what I really want is this:</p>
  
  <pre><code>exports = Greeter;
  </code></pre>
  
  <p>So that I can use it like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>import { Greeter } from "greeter";
  
  const greeter = new Greeter();
  </code></pre>
  
  <p>and not</p>
  
  <pre class="lang-js prettyprint-override"><code>import { Greeter } from "greeter";
  
  const greeter = new Greeter.Greeter();
  </code></pre>
  
  <p>Is this possible with Typescript?</p>