title: How do I set the default value of a parameter to an empty array in TypeScript?
body: <p>Regarding the following code I have two questions:</p>
  
  <ol>
  <li><p>When I compile it I get the warning/error "Cannot convert 'any[]' to 'Array'". Is that because <code>public songPaths: Array = []</code> isn't legit and I should just go with <code>public songPaths: any = []</code> ?</p></li>
  <li><p>Is <code>Object</code> an appropriate default value for <code>public song:Object = new Audio()</code>?</p></li>
  </ol>
  
  <p>Example:</p>
  
  <pre><code>'use strict';
  
  class Boombox{
        constructor(public track: number, public codec: string, public song:Object = new Audio(), public currentTime: number = 0, public playing:bool = false, public titles: any = [], public songPaths: Array = []){
        }
  }
  </code></pre>