title: How to define a named array of objects in an interface with TypeScript?
body: <p>How do I define the <code>restaurants</code> property in an interface with TypeScript?</p>
  
  <pre><code>let test = {
    user_id: 5,
    restaurants: [
      {
        restaurant_id: 5,
        restaurant_rank: 5
      },
      {
        restaurant_id: 6,
        restaurant_rank: 6
      }
    ],
    timestamp: 'test'
  };
  </code></pre>
  
  <h3>Note</h3>
  
  <p>I've looked at the following questions but none of them solved my problem:</p>
  
  <p><a href="https://stackoverflow.com/q/25469244/">How can I define an interface for an array of objects with Typescript?
  </a></p>
  
  <p><a href="https://stackoverflow.com/q/35435042/">How can I define an array of objects in typescript?
  </a></p>