title: Creating an interface with an array of variable length, containing objects in TypeScript/Angular4
body: <p>I am attempting to create a variable within an in-memory database that contains a TypeScript interface that describes a JSON dataset. This dataset should contain multiple arrays, which in turn contain multiple objects with a fixed length and consistent attributes. </p>
  
  <p>I am writing this in Angular4 and TypeScript. The arrays must be of variable length with a minimum of 1 member</p>
  
  <p>I've written this pseudo code to show you what I mean:</p>
  
  <pre><code>export class MyHomeBrewery {
    taps: Array&lt;any&gt; = [{
      id: number;
      name: string;
      type: string;
      quantity: number;
    }][...];
    barrels: Array&lt;any&gt; {
      id: number;
      name: string;
      width: number;
      height: number;
      quantity: number;
   }][...];
  </code></pre>
  
  <p>I've had a look through the TypeScript and Angular documentation and done a few searches and I can't find the correct syntax for this. Does anyone know?</p>