title: Subclassing in Typescript
body: <p>I have a storage class in Typescript, that implements <code>Storage</code> interface, say <code>MyStorage</code>. But it has too many methods, so I want to use it instead of <code>MyStorage.getCandy</code> - <code>MyStorage.Candies.getCandies</code>.
  How can the structure possibly look?</p>
  
  <p>I assume, something like</p>
  
  <pre><code>export class MyStorage implements Storage {
  
  public constructor {} ...
  
  Candies: {
     getCandies() { ... }
  }
  
  Balls: {
  ...
  }
  }
  </code></pre>