title: how to use a javascript module in typescript
body: <p>I have a file called model-parser.js</p>
  
  <p>it contains: </p>
  
  <pre><code>var _ = require('lodash');
  
  function getTypes(vitalsModel) {
      var vitals = _.get(vitalsModel, 'vitals');
  
      var rows = [];
      _.forEach(vitals, function (vital) {
          rows.unshift(Object.keys(vital));
      });
  
      return rows; 
  } 
  
  module.exports.getTypes = getTypes;
  </code></pre>
  
  <p>I want to use the above file in a typescript file.
  What is the correct syntax?</p>