title: How to import js-modules into TypeScript file?
body: <p>I have a Protractor project which contains such a file:</p>
  <pre><code>var FriendCard = function (card) {
      var webElement = card;
      var menuButton;
      var serialNumber;
  
      this.getAsWebElement = function () {
          return webElement;
      };
  
      this.clickMenuButton = function () {
          menuButton.click();
      };
  
      this.setSerialNumber = function (numberOfElements) {
          serialNumber = numberOfElements + 1;
          menuButton = element(by.xpath('.//*[@id=\'mCSB_2_container\']/li[' + serialNumber + ']/ng-include/div/div[2]/i'));
      };
  
      this.deleteFriend = function () {
          element(by.css('[ng-click=&quot;deleteFriend(person);&quot;]')).click();
          element(by.css('[ng-click=&quot;confirm()&quot;]')).click();
      }
  };
  module.exports = FriendCard;
  </code></pre>
  <p>Path to the file is <code>./pages/FriendCard.js</code>.</p>
  <p>I have no problems with its import to another file using <code>require()</code>:</p>
  <pre><code>var FriendCard = require('./../pages/FriendCard');
  </code></pre>
  <p>So, I've decided to import this file to the TypeScript file just like that:</p>
  <pre><code>import {FriendCard} from './../pages/FriendCard'
  </code></pre>
  <p>I'm using WebStorm. It tells me that (<strong>TS2305</strong>) it has no exported member 'FriendCard'.</p>
  <p>Maybe I have to configure tsconfig.json file somehow, but I still don't know how it works. Could you help me?</p>