title: How can I define an array of objects?
body: <p>I am creating an array of objects in TypeScript:</p>
  
  <pre><code> userTestStatus xxxx = {
      "0": { "id": 0, "name": "Available" },
      "1": { "id": 1, "name": "Ready" },
      "2": { "id": 2, "name": "Started" }
   };
  </code></pre>
  
  <p>Can someone tell me how I could declare its type correctly? Is it possible to do inline or would I need two definitions?</p>
  
  <p>I'm looking to replace the <code>xxx</code> with a type declaration, so that later on TypeScript would alert me if I used something like <code>userTestStatus[3].nammme</code> by mistake.</p>