title: Parameter declaration expected (typescript)
body: <p>@Vinay in this <a href="https://stackoverflow.com/questions/33629456/typescript-angularjs-1-how-to-connect-enum-with-select-directive">TypeScript + AngularJS 1: How to connect enum with select directive?</a> question shows a relatively simple way to get a array for building a select drop-down in angular.</p>
  
  <p>Unfortunately, I try to ape this code and I get errors ... first upon declaring the 'colors' array if I use var or let... (but it works if I don't). Unfortunately, that just moves the error to the next variable declaration in the setup of the for loop.  Unfortunately, here, I can't not put in a <code>let</code> or a <code>var</code>.</p>
  
  <p>I'm sure this is simple, but I'm just banging me head and missing it.</p>
  
  <pre><code>enum Color {
      Green = &lt;any&gt;"Green",
      Red = &lt;any&gt;"Red",
      Blue = &lt;any&gt;"Blue"
    }
  
  export class ClassName {
    colors: string[] = [];  // &lt;-- get error here if I declare var or let
    for (var item in Color) {  // &lt;-- get error here
        if (Color.hasOwnProperty(item)) {
            this.colors.push(item);
        }
     }
   }
  </code></pre>