title: dictionary with a Type as a key typescript
body: <p>I want to create a dictionary with Types as values.  </p>
  
  <p>f.e, in C#, i'd do: <code>Dictionary&lt;Type, WhateverINeed&gt;</code>, but in typescript there's really I know that can do that. </p>
  
  <p>I've come across <code>type.d.ts</code> in <code>@angulalr/core</code>, but I don't know how to use it. I've seen the generic type class used the <code>Route</code> interface, where you provide the Component class for the route.</p>
  
  <p>Basically, I want to create a map between a type and an <code>Observable</code> of that class</p>
  
  <p>But the only dictionary key types I know can be used with Typescript's dictionary are <code>int</code> and <code>string</code>.</p>
  
  <p>The usecase would be either:</p>
  
  <pre><code>service.method&lt;MyClass&gt;(...)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>service.method(MyClass, ...)
  </code></pre>
  
  <p>Thanks for helping!</p>