title: what is the difference between export and exports in Typescript?
body: <p>I have <a href="https://stackoverflow.com/questions/20060987/what-is-the-difference-between-export-and-public-in-typescript">read</a> that they do the same thing when on the top level? However, in my case:</p>
  
  <p>This works fine:</p>
  
  <pre><code>export class First{}
  export class Second{}
  </code></pre>
  
  <p>but following gives error:</p>
  
  <pre><code>class First{}
  class Second{}
  module.exports = exports = {First,Second}
  </code></pre>
  
  <p>Error: <strong>File '<em>filepath</em>.ts' is not a module.</strong></p>