title: Typescript: How to export a variable
body: <p>I want to open 'file1.ts' and write: </p>
  
  <pre><code>export var arr = [1,2,3];
  </code></pre>
  
  <p>and open another file, let's say 'file2.ts' and access directly to 'arr' in file1.ts: </p>
  
  <p>I do it by: </p>
  
  <pre><code>import {arr} from './file1';
  </code></pre>
  
  <p>However, when I want to access 'arr', I can't just write 'arr', but I have to write 'arr.arr'. The first one is for the module name. How do I access directly an exported variable name? </p>