title: Exporting modules in typescript
body: <p>I'm new to typescript, I'm working with Node.js 5.10.1 and tsc 1.8.9.
  I'm trying to create a simple ts file that contains a function that I can use.</p>
  
  <p>Since I'm using external modules and since my app is Node.js based I'm using the typescript-require 3rd library module.</p>
  
  <p>This is my <code>my-util.ts</code> file:</p>
  
  <pre class="lang-js prettyprint-override"><code>"use strict";
  
  var fs = require('fs');
  
  export module MyUtil {
      export function isFileReadable(filePath:string, callback:Function) {
          fs.access(filePath, fs.R_OK, (err) =&gt; {
              callback(err, null);
          });
      }
  }
  </code></pre>
  
  <p>Now... in the main <code>ts</code> file which is currently.. empty. I want to require 
  the <code>my-util.ts</code> file and use the function <code>isFileReadable</code>. </p>
  
  <p>What I correct to add export to the module <code>MyUtil</code>? How do I require it?</p>