Creating an interface with an array of variable length, containing objects in TypeScript/Angular4
You should be using them as interfaces as below
export interface MyHomeBrewery { taps: Array<Taps>; barrels: Array<Barrels>;}export interface Taps { id: number; name: string; type: string; quantity: number;}export interface Barrels { id : number; name: string; width: number; height: number; quantity: number;}