title: Implementing an indexer in a class in TypeScript
body: <p>Is it currently possible to implement an indexer on a class in TypeScript?</p>
  
  <pre><code>class MyCollection {
     [name: string]: MyType;       
  }
  </code></pre>
  
  <p>This doesn't compile. I can specify an indexer on an interface, of course, but I need methods on this type as well as the indexer, so an interface won't suffice.</p>
  
  <p>Thanks.</p>