title: How can I import an external file with TypeScript?
body: <p>I have a node app that has a string of <code>require</code>s, like this:</p>
  
  <pre><code>var express = require('express'),
      router = require('./router'),
      data = require('./data');
  </code></pre>
  
  <p>This code works without changes, but how can I take full advantage of TypeScript modules? Just using </p>
  
  <pre><code>import data = module("./data")
  </code></pre>
  
  <p>will tell me</p>
  
  <blockquote>
    <p>The name ''./data'' does not exist in the current scope</p>
  </blockquote>
  
  <p>How can I import an external file with TypeScript?</p>