title: typescript declare third party modules
body: <p>How could I declare a third party module which looks like this:</p>
  
  <p>in third party module:</p>
  
  <pre><code>module.exports = function foo(){
    // do somthing
  }
  </code></pre>
  
  <p>in my code:</p>
  
  <pre><code>import * as foo from 'foo-module'; // Can not find a declaration module for ...
  foo();
  </code></pre>