title: JavaScript type script Property 0 is missing in type []
body: <p>I want to have an array of an object as follows.</p>
  
  <p>However typescript throws up an error Property 0 is missing in type []</p>
  
  <pre><code>let organisations: [{name: string, collapsed: boolean}] = [];
  </code></pre>