title: Typescript : require statement not part of an import statement
body: <p>Typescript version 2.2.2</p>
  
  <p>I wrote this require in my UserRoutzr.ts</p>
  
  <pre><code>const users = &lt;IUser[]&gt; require(path.join(process.cwd() + "/data"));
  </code></pre>
  
  <p>TSLint is raising the following warning:</p>
  
  <pre><code>require statement not part of an import statement
  </code></pre>
  
  <p>if I changed it to :</p>
  
  <pre><code>import users = &lt;IUser[]&gt; require(path.join(process.cwd() + "/data"));
  </code></pre>
  
  <p>Then it's raising an error :</p>
  
  <pre><code>TS1003 Identifier expected
  </code></pre>
  
  <p>How should I rewrite this require ?
  thanks for feedback</p>