title: Typescript: using an enum declared in another file
body: <p>Say I've got an enum declared in one file (test1.ts):</p>
  
  <pre><code>export enum Colors{
      red=1,
      blue=2,
      green=3
  }
  </code></pre>
  
  <p>Then in another file (test2.ts) I'm declaring a class which has a method. One of the parameters to that method is a Color defined in the Colors enum:</p>
  
  <pre><code>'use strict';
  declare var require: any;
  declare var exports: any;
  
  var Colors = require('Colors');
  
  class DoSomethingWithColor{
      ColorFunction(aColour:Colors){
          //Funky color processing here..
      }
  }
  </code></pre>
  
  <p>However, I'm getting an error:</p>
  
  <blockquote>
    <p>Cannot fine name Colors</p>
  </blockquote>
  
  <p>Even though its exported and required in the second file.
  Am I doing something wrong here or is this just not a 'typescripty' way of doing what I'm trying to do (and if so, what is the preferred way?)?</p>
  
  <p>Thanks</p>